Bug 1021312 - Followup to fix incorrect test. r=me on a CLOSED TREE

This commit is contained in:
Bobby Holley 2014-06-06 13:49:38 -07:00
parent 2f2f97f987
commit 5aecb1c33a

View File

@ -7,7 +7,7 @@ function run_test() {
let sb = new Cu.Sandbox(this);
var called = false;
Cu.exportFunction(function(str) { do_check_true(str, "someString"); called = true; },
Cu.exportFunction(function(str) { do_check_true(/someString/.test(str)); called = true; },
sb, { defineAs: "func" });
// Do something weird with the string to make sure that it doesn't get interned.
Cu.evalInSandbox("var str = 'someString'; for (var i = 0; i < 10; ++i) str += i;", sb);