Bug 1002709 - Fix regexp in cross-context-stack-1.js jit-test to not match the "beta" in the path name after a merge. r=luke

This commit is contained in:
Jan de Mooij 2014-04-29 00:12:51 +02:00
parent afbffbcd64
commit fede95b520

View File

@ -6,16 +6,16 @@ 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);