Bug 1002709 - Fix regexp in cross-context-stack-1.js jit-test to not match the beta in the path name on a CLOSED TREE. r=bustage, a=test-only
authorJan de Mooij <jdemooij@mozilla.com>
Tue, 29 Apr 2014 00:12:51 +0200
changeset 192165 b527b5318905087c51a73bc20145dcc05551fd80
parent 192164 c95ac01e332e0e7554fe8152a886a6a1f508da3c
child 192166 b362d19d0cd80f3094eee8b4113daca7d0cfbb88
child 192168 9c77192752dbf7e1768b6c69bec50717040961da
child 192170 69fcc2d9c81b4e8a52adebaa6af3d4abc73f44f6
push id3504
push userjandemooij@gmail.com
push dateMon, 28 Apr 2014 22:15:45 +0000
treeherdermozilla-beta@b527b5318905 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage, test-only
bugs1002709
milestone30.0
Bug 1002709 - Fix regexp in cross-context-stack-1.js jit-test to not match the beta in the path name on a CLOSED TREE. r=bustage, a=test-only
js/src/jit-test/tests/basic/cross-context-stack-1.js
--- a/js/src/jit-test/tests/basic/cross-context-stack-1.js
+++ b/js/src/jit-test/tests/basic/cross-context-stack-1.js
@@ -1,21 +1,21 @@
 // Error().stack (ScriptFrameIter) is no longer context-bound.
 function beta() {
     evaluate("function gamma() {\nstack = Error().stack;\n };\n gamma();", {newContext: true});
 }
 function alpha() {
     beta();
 }
 alpha();
-assertEq(/alpha/.test(stack), true);
-assertEq(/beta/.test(stack), true);
-assertEq(/gamma/.test(stack), true);
-assertEq(/delta/.test(stack), false);
+assertEq(/alpha@/.test(stack), true);
+assertEq(/beta@/.test(stack), true);
+assertEq(/gamma@/.test(stack), true);
+assertEq(/delta@/.test(stack), false);
 
 function delta() {
     evaluate("stack = Error().stack", {newContext: true});
 }
 delta();
-assertEq(/alpha/.test(stack), false);
-assertEq(/beta/.test(stack), false);
-assertEq(/gamma/.test(stack), false);
-assertEq(/delta/.test(stack), true);
+assertEq(/alpha@/.test(stack), false);
+assertEq(/beta@/.test(stack), false);
+assertEq(/gamma@/.test(stack), false);
+assertEq(/delta@/.test(stack), true);