mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 763440 - Add missing testcase for bug 763440. r=needed-tests
--HG-- extra : rebase_source : cee87606c1aaa9cbc70f854a9a49711222064e4e
This commit is contained in:
parent
79b79dc71c
commit
7778c68dae
22
js/src/jit-test/tests/basic/bug763440.js
Normal file
22
js/src/jit-test/tests/basic/bug763440.js
Normal 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);
|
Loading…
Reference in New Issue
Block a user