Bug 1242810 - Test. r=jandem
authorJeff Walden <jwalden@mit.edu>
Wed, 02 Mar 2016 17:52:09 -0800
changeset 354887 dce0d05ef87f18f677cd6b8c2cbe2f40b0e78863
parent 354886 65c59398a16037e0b9c8968551b10cd388f7afd9
child 354888 92f2732f1114decfdcd47d0d5e7c0b12f20415dc
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1242810
milestone51.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 1242810 - Test. r=jandem
js/src/jit-test/tests/regexp/clone-statics.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/regexp/clone-statics.js
@@ -0,0 +1,21 @@
+if (helperThreadCount() === 0)
+  quit(0);
+
+offThreadCompileScript(`
+  function foo(x, {}) {
+    do {
+      re = /erwe/;
+      if (x === 1)
+        re.x = 1;
+      else
+        re.x = "a";
+      assertEq(re.x.length, (x === 1) ? undefined : 1);
+    } while (!inIon());
+  }
+
+  foo(0, 0);
+  RegExp.multiline = 1;
+  foo(1, 0);
+`);
+
+runOffThreadScript();