mirror of https://github.com/tc39/test262.git
built-ins/Function/*: make all indentation consistent (depth & character) (#1424)
This intentionally skips test/built-ins/Function/prototype/toString/*
This commit is contained in:
parent
f574680595
commit
1b30a976e8
|
@ -9,7 +9,7 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
|
||||
assert.throws(SyntaxError, function() {
|
||||
Function('a','a','"use strict";');
|
||||
Function('a', 'a', '"use strict";');
|
||||
});
|
||||
|
|
|
@ -8,4 +8,4 @@ description: >
|
|||
if body not strict
|
||||
---*/
|
||||
|
||||
Function('a','a','return;');
|
||||
Function('a', 'a', 'return;');
|
||||
|
|
|
@ -9,4 +9,4 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
Function('a','a','return;');
|
||||
Function('a', 'a', 'return;');
|
||||
|
|
|
@ -11,5 +11,5 @@ flags: [noStrict]
|
|||
|
||||
|
||||
assert.throws(SyntaxError, function() {
|
||||
Function('eval', '"use strict";');
|
||||
Function('eval', '"use strict";');
|
||||
});
|
||||
|
|
|
@ -8,4 +8,4 @@ description: >
|
|||
body is not strict mode
|
||||
---*/
|
||||
|
||||
Function('eval', 'return;');
|
||||
Function('eval', 'return;');
|
||||
|
|
|
@ -10,4 +10,4 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
Function('eval', 'return;');
|
||||
Function('eval', 'return;');
|
||||
|
|
|
@ -9,7 +9,7 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
|
||||
|
||||
assert.throws(SyntaxError, function() {
|
||||
Function('a,a','"use strict";');
|
||||
Function('a,a', '"use strict";');
|
||||
});
|
||||
|
|
|
@ -8,4 +8,4 @@ description: >
|
|||
if body is not strict
|
||||
---*/
|
||||
|
||||
Function('a,a','return;');
|
||||
Function('a,a', 'return;');
|
||||
|
|
|
@ -9,4 +9,4 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
Function('a,a','return a;');
|
||||
Function('a,a', 'return a;');
|
||||
|
|
|
@ -10,4 +10,4 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
Function('arguments', 'return;');
|
||||
Function('arguments', 'return;');
|
||||
|
|
|
@ -11,4 +11,4 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var foo = new Function("baz", "qux", "baz", "return 0;");
|
||||
var foo = new Function("baz", "qux", "baz", "return 0;");
|
||||
|
|
|
@ -10,4 +10,4 @@ description: >
|
|||
body
|
||||
---*/
|
||||
|
||||
var foo = new Function("baz", "baz", "baz", "return 0;");
|
||||
var foo = new Function("baz", "baz", "baz", "return 0;");
|
||||
|
|
|
@ -9,9 +9,8 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
function _15_3_5_1_gs() {}
|
||||
function fn() {}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
_15_3_5_1_gs.caller;
|
||||
fn.caller;
|
||||
});
|
||||
|
|
|
@ -13,9 +13,9 @@ flags: [noStrict]
|
|||
var f = new Function("\"use strict\";\ngNonStrict();");
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f();
|
||||
f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,10 +10,10 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
eval("gNonStrict();");
|
||||
eval("gNonStrict();");
|
||||
});
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -14,5 +14,5 @@ eval("\"use strict\";\ngNonStrict();");
|
|||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@ flags: [onlyStrict]
|
|||
var my_eval = eval;
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
my_eval("gNonStrict();");
|
||||
my_eval("gNonStrict();");
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -16,5 +16,5 @@ my_eval("\"use strict\";\ngNonStrict();");
|
|||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,13 +11,13 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
function f() {
|
||||
gNonStrict();
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
new f();
|
||||
new f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,14 +11,14 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
new f();
|
||||
new f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,14 +10,14 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
new f();
|
||||
new f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,15 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f = function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
var f = function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
new f();
|
||||
new f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,11 +11,11 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
var obj = new (function () {
|
||||
gNonStrict();
|
||||
});
|
||||
var obj = new(function() {
|
||||
gNonStrict();
|
||||
});
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,13 +10,13 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
function f() {
|
||||
gNonStrict();
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f();
|
||||
f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,13 +11,13 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
var obj = new (function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
});
|
||||
var obj = new(function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,16 +11,16 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,16 +11,16 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
(function () {
|
||||
gNonStrict();
|
||||
})();
|
||||
(function() {
|
||||
gNonStrict();
|
||||
})();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,18 +10,18 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
var f1 = function() {
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,17 +10,17 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
var f1 = function() {
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,16 +10,16 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
(function () {
|
||||
gNonStrict();
|
||||
})();
|
||||
var f1 = function() {
|
||||
(function() {
|
||||
gNonStrict();
|
||||
})();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,14 +11,14 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
(function() {
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
(function() {
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
});
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,13 +11,13 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
(function () {
|
||||
gNonStrict();
|
||||
})();
|
||||
(function() {
|
||||
(function() {
|
||||
gNonStrict();
|
||||
})();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,14 +11,14 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f();
|
||||
f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,17 +11,18 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
"use strict";
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
"use strict";
|
||||
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,17 +11,17 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
"use strict";
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
"use strict";
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,16 +11,16 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
"use strict";
|
||||
(function () {
|
||||
gNonStrict();
|
||||
})();
|
||||
"use strict";
|
||||
(function() {
|
||||
gNonStrict();
|
||||
})();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,18 +10,19 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
"use strict";
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
var f1 = function() {
|
||||
"use strict";
|
||||
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,18 +10,18 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
"use strict";
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
var f1 = function() {
|
||||
"use strict";
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,17 +10,17 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
"use strict";
|
||||
(function () {
|
||||
gNonStrict();
|
||||
})();
|
||||
var f1 = function() {
|
||||
"use strict";
|
||||
(function() {
|
||||
gNonStrict();
|
||||
})();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,16 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
"use strict";
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
function f() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
"use strict";
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
(function() {
|
||||
"use strict";
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
f();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,14 +11,14 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
"use strict";
|
||||
(function () {
|
||||
gNonStrict();
|
||||
})();
|
||||
(function() {
|
||||
"use strict";
|
||||
(function() {
|
||||
gNonStrict();
|
||||
})();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,17 +11,17 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -9,14 +9,14 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var f = function () {
|
||||
gNonStrict();
|
||||
var f = function() {
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f();
|
||||
f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,17 +11,17 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
var f = function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
var f = function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,16 +11,16 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
function f1() {
|
||||
return (function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
return (function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,18 +10,18 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
var f1 = function() {
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,18 +10,18 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
var f = function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
var f1 = function() {
|
||||
var f = function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,17 +10,17 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f1 = function () {
|
||||
return (function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
var f1 = function() {
|
||||
return (function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f1();
|
||||
f1();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
})();
|
||||
(function() {
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
var f = function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
})();
|
||||
(function() {
|
||||
var f = function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
return f();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
return (function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
(function() {
|
||||
return (function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
})();
|
||||
});
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -9,12 +9,16 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var o = { get foo() { gNonStrict(); } }
|
||||
var o = {
|
||||
get foo() {
|
||||
gNonStrict();
|
||||
}
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo;
|
||||
o.foo;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,17 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var o = { get foo() { "use strict"; gNonStrict(); } }
|
||||
var o = {
|
||||
get foo() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo;
|
||||
o.foo;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,15 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var f = function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
var f = function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f();
|
||||
f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -9,12 +9,16 @@ description: >
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
var o = { set foo(stuff) { gNonStrict(); } }
|
||||
var o = {
|
||||
set foo(stuff) {
|
||||
gNonStrict();
|
||||
}
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo = 7;
|
||||
o.foo = 7;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,17 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var o = { set foo(stuff) { "use strict"; gNonStrict(); } }
|
||||
var o = {
|
||||
set foo(stuff) {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo = 8;
|
||||
o.foo = 8;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,16 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
var o = {};
|
||||
Object.defineProperty(o, "foo", { get: function() { gNonStrict(); } });
|
||||
Object.defineProperty(o, "foo", {
|
||||
get: function() {
|
||||
gNonStrict();
|
||||
}
|
||||
});
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo;
|
||||
o.foo;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,12 +11,17 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
var o = {};
|
||||
Object.defineProperty(o, "foo", { get: function() { "use strict"; gNonStrict(); } });
|
||||
Object.defineProperty(o, "foo", {
|
||||
get: function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
});
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo;
|
||||
o.foo;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,16 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
var o = {};
|
||||
Object.defineProperty(o, "foo", { set: function(stuff) { gNonStrict(); } });
|
||||
Object.defineProperty(o, "foo", {
|
||||
set: function(stuff) {
|
||||
gNonStrict();
|
||||
}
|
||||
});
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo = 9;
|
||||
o.foo = 9;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,12 +11,17 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
var o = {};
|
||||
Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; gNonStrict(); } });
|
||||
Object.defineProperty(o, "foo", {
|
||||
set: function(stuff) {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
}
|
||||
});
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
o.foo = 10;
|
||||
o.foo = 10;
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,13 +10,19 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict(); };
|
||||
function foo() { return f();}
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
function foo() {
|
||||
return f();
|
||||
}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
foo();
|
||||
foo();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict(); };
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
eval("f();");
|
||||
eval("f();");
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict(); };
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
Function("return f();")();
|
||||
Function("return f();")();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict(); };
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
new Function("return f();")();
|
||||
new Function("return f();")();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,11 +11,11 @@ flags: [onlyStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
gNonStrict();
|
||||
})();
|
||||
(function() {
|
||||
gNonStrict();
|
||||
})();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.apply();
|
||||
f.apply();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.apply(null);
|
||||
f.apply(null);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.apply(undefined);
|
||||
f.apply(undefined);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,13 +10,16 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
var o = {};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.apply(o);
|
||||
f.apply(o);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,12 +11,16 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
var global = this;
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.apply(global);
|
||||
f.apply(global);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.call();
|
||||
f.call();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.call(null);
|
||||
f.call(null);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.call(undefined);
|
||||
f.call(undefined);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,13 +10,16 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
var o = {};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.call(o);
|
||||
f.call(o);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,12 +11,16 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
var global = this;
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.call(this);
|
||||
f.call(this);
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,13 +11,13 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
(function () {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
(function() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
})();
|
||||
});
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.bind()();
|
||||
f.bind()();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.bind(null)();
|
||||
f.bind(null)();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.bind(undefined)();
|
||||
f.bind(undefined)();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -10,13 +10,16 @@ description: >
|
|||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
var o = {};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.bind(o)();
|
||||
f.bind(o)();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,12 +11,16 @@ flags: [noStrict]
|
|||
---*/
|
||||
|
||||
var global = this;
|
||||
function f() { "use strict"; gNonStrict();};
|
||||
|
||||
function f() {
|
||||
"use strict";
|
||||
gNonStrict();
|
||||
};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f.bind(global)();
|
||||
f.bind(global)();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
return gNonStrict.caller || gNonStrict.caller.throwTypeError;
|
||||
}
|
||||
|
|
|
@ -11,11 +11,17 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
function foo() { "use strict"; f();}
|
||||
foo();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
|
||||
function foo() {
|
||||
"use strict";
|
||||
f();
|
||||
}
|
||||
foo();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; return eval("f();"); })();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
return eval("f();");
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() {return gNonStrict();};
|
||||
(function () {"use strict"; Function("return f();")(); })();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
Function("return f();")();
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; return new Function("return f();")(); })();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
return new Function("return f();")();
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.apply();})();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.apply();
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@ flags: [onlyStrict]
|
|||
var f = Function("return gNonStrict();");
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
f();
|
||||
f();
|
||||
});
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.apply(null); })();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.apply(null);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.apply(undefined); })();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.apply(undefined);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,11 +11,16 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
var o = {};
|
||||
(function () {"use strict"; f.apply(o); })();
|
||||
(function() {
|
||||
"use strict";
|
||||
f.apply(o);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -12,10 +12,16 @@ features: [caller]
|
|||
---*/
|
||||
|
||||
var global = this;
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.apply(global); })();
|
||||
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.apply(global);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.call();})();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.call();
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.call(null);})();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.call(null);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.call(undefined); })();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.call(undefined);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,11 +11,16 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
var o = {};
|
||||
(function () {"use strict"; f.call(o); })();
|
||||
(function() {
|
||||
"use strict";
|
||||
f.call(o);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -12,10 +12,16 @@ features: [caller]
|
|||
---*/
|
||||
|
||||
var global = this;
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.call(global); })();
|
||||
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.call(global);
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
|
@ -11,10 +11,15 @@ flags: [noStrict]
|
|||
features: [caller]
|
||||
---*/
|
||||
|
||||
function f() { return gNonStrict();};
|
||||
(function () {"use strict"; f.bind()();})();
|
||||
function f() {
|
||||
return gNonStrict();
|
||||
};
|
||||
(function() {
|
||||
"use strict";
|
||||
f.bind()();
|
||||
})();
|
||||
|
||||
|
||||
function gNonStrict() {
|
||||
return gNonStrict.caller;
|
||||
return gNonStrict.caller;
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue