Bug 783543 - add test for fix in bug 783315 (no bug, r=me)
authorLuke Wagner <luke@mozilla.com>
Fri, 17 Aug 2012 11:19:47 -0700
changeset 102695 7e0c5cdfc6489eb8415edce2c498011883426ad8
parent 102694 53951ff066a676c89cca4ffa46ab6924546706a9
child 102696 a32f22345f2f0b3dbfdfd1caea893833ebd6dd57
push id23303
push userryanvm@gmail.com
push dateSat, 18 Aug 2012 11:22:19 +0000
treeherdermozilla-central@9c48df21d744 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs783543, 783315
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 783543 - add test for fix in bug 783315 (no bug, r=me)
js/src/jit-test/tests/basic/testBug783543.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testBug783543.js
@@ -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() {}