зеркало из https://github.com/mozilla/pjs.git
Followup to fix tests relying on the mistaken absence of JSOPTION_ANONFUNFIX. r=orange
This commit is contained in:
Родитель
8066c289db
Коммит
7f6ff8b564
|
@ -23,7 +23,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=654370
|
|||
|
||||
var Cu = Components.utils;
|
||||
var sandbox = new Cu.Sandbox(window);
|
||||
var script = "function (obj, type) { return obj instanceof type; }";
|
||||
var script = "(function (obj, type) { return obj instanceof type; })";
|
||||
var instanceOf = Cu.evalInSandbox(script, sandbox, "1.8", "Test", 1);
|
||||
ok(!instanceOf({}, Window), "instanceOf from the sandbox gets the right result");
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ let inputValues = [
|
|||
"document.wrappedJSObject.getElementById"],
|
||||
|
||||
// 12
|
||||
[false, "function() { return 42; }", "function () {return 42;}",
|
||||
[false, "(function() { return 42; })", "function () {return 42;}",
|
||||
"function () {\n return 42;\n}",
|
||||
"(function () {return 42;})"],
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче