mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1021312 - Followup to fix incorrect test. r=me on a CLOSED TREE
This commit is contained in:
parent
2f2f97f987
commit
5aecb1c33a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user