Bug 763440 - Add missing testcase for bug 763440. r=needed-tests

--HG--
extra : rebase_source : cee87606c1aaa9cbc70f854a9a49711222064e4e
This commit is contained in:
Christian Holler 2013-03-13 01:13:15 +01:00
parent 79b79dc71c
commit 7778c68dae

View File

@ -0,0 +1,22 @@
var summary = '';
var actual = '';
gcPreserveCode()
function TestCase(n, d, e, a) {
this.name=n;
}
function reportCompare (expected, actual, description) {
new TestCase
}
reportCompare(true, eval++, "Function.prototype.isGenerator present");
var p = Proxy.create({
has : function(id) {}
});
Object.prototype.__proto__ = p;
new TestCase;
var expect = '';
reportCompare(expect, actual, summary);
gczeal(4);
try {
evalcx(".");
} catch (e) {}
reportCompare(expect, actual, summary);