Bug 783543 - add test for fix in bug 783315 (no bug, r=me)

This commit is contained in:
Luke Wagner 2012-08-17 11:19:47 -07:00
parent d63af71024
commit 1f5e26a772

View 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() {}