mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783543 - add test for fix in bug 783315 (no bug, r=me)
This commit is contained in:
parent
d63af71024
commit
1f5e26a772
11
js/src/jit-test/tests/basic/testBug783543.js
Normal file
11
js/src/jit-test/tests/basic/testBug783543.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// |jit-test| error:ReferenceError
|
||||||
|
|
||||||
|
try {
|
||||||
|
evaluate(" (function(c) { const x = 1; for (x in null); })();");
|
||||||
|
var expect = "Passed";
|
||||||
|
} catch ( e ) {
|
||||||
|
result = expect;
|
||||||
|
}
|
||||||
|
schedulegc(10);
|
||||||
|
eval("var o = new MyObject(); var result = 0; for (var o in foo) { result += this[o]; } ")
|
||||||
|
function MyObject() {}
|
Loading…
Reference in New Issue
Block a user