blob: 9c8dde4e5a8642a7b5a4c75edd29669d39b4255d [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
</script>
</head>
<body>
<script>
description("Tests Bugzilla Bug 9815: JavaScript TypeError loading Dean Edwards' JS compressor/obfuscator");
function MyClass()
{
}
MyClass.runTest = function()
{
var objTest = new this.func;
return objTest.internalFunc;
}
MyClass.func = new Function("return this");
MyClass.func.prototype =
{
internalFunc: function() { }
}
var actual = "" + MyClass.runTest();
shouldBe("actual", "'function() { }'");
</script>
<script>
if (window.testRunner)
testRunner.notifyDone();
</script>
</body>
</html>