Bug 847484 - Add testcase. r=new-test DONTBUILD

This commit is contained in:
Jan de Mooij 2013-03-12 14:47:45 +01:00
parent 07f2a253be
commit 64582d813a

View File

@ -0,0 +1,14 @@
function TestCase(n, d) {}
function reportCompare() {
new TestCase;
}
Object.defineProperty(Object.prototype, "name", {});
reportCompare();
try {
function TestCase( n, d ) {
this.name = n;
this.description = d;
}
reportCompare();
reportCompare();
} catch(exc3) { assertEq(0, 1); }