Bug 1021312 - Followup to fix incorrect test. r=me

This commit is contained in:
Bobby Holley 2014-06-06 13:49:38 -07:00
parent 1dc2f20bd4
commit 518f1c8a2b

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);