blob: 4d78e5555a7dd94ae0182b7960a9e43a4f0870d9 [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>