1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

built-ins/Function/*: make all indentation consistent (depth & character) ()

This intentionally skips test/built-ins/Function/prototype/toString/*
This commit is contained in:
Rick Waldron 2018-02-15 15:49:19 -05:00 committed by Leo Balter
parent f574680595
commit 1b30a976e8
342 changed files with 1499 additions and 1133 deletions
test/built-ins/Function
15.3.2.1-11-1-s.js15.3.2.1-11-1.js15.3.2.1-11-2-s.js15.3.2.1-11-3-s.js15.3.2.1-11-3.js15.3.2.1-11-4-s.js15.3.2.1-11-5-s.js15.3.2.1-11-5.js15.3.2.1-11-6-s.js15.3.2.1-11-7-s.js15.3.2.1-11-8-s.js15.3.2.1-11-9-s.js15.3.5-1gs.js15.3.5.4_2-10gs.js15.3.5.4_2-11gs.js15.3.5.4_2-12gs.js15.3.5.4_2-13gs.js15.3.5.4_2-14gs.js15.3.5.4_2-15gs.js15.3.5.4_2-16gs.js15.3.5.4_2-17gs.js15.3.5.4_2-18gs.js15.3.5.4_2-19gs.js15.3.5.4_2-1gs.js15.3.5.4_2-20gs.js15.3.5.4_2-21gs.js15.3.5.4_2-22gs.js15.3.5.4_2-23gs.js15.3.5.4_2-24gs.js15.3.5.4_2-25gs.js15.3.5.4_2-26gs.js15.3.5.4_2-27gs.js15.3.5.4_2-28gs.js15.3.5.4_2-29gs.js15.3.5.4_2-2gs.js15.3.5.4_2-30gs.js15.3.5.4_2-31gs.js15.3.5.4_2-32gs.js15.3.5.4_2-33gs.js15.3.5.4_2-34gs.js15.3.5.4_2-35gs.js15.3.5.4_2-36gs.js15.3.5.4_2-37gs.js15.3.5.4_2-38gs.js15.3.5.4_2-39gs.js15.3.5.4_2-3gs.js15.3.5.4_2-40gs.js15.3.5.4_2-41gs.js15.3.5.4_2-42gs.js15.3.5.4_2-43gs.js15.3.5.4_2-44gs.js15.3.5.4_2-45gs.js15.3.5.4_2-46gs.js15.3.5.4_2-47gs.js15.3.5.4_2-48gs.js15.3.5.4_2-49gs.js15.3.5.4_2-4gs.js15.3.5.4_2-50gs.js15.3.5.4_2-51gs.js15.3.5.4_2-52gs.js15.3.5.4_2-53gs.js15.3.5.4_2-54gs.js15.3.5.4_2-55gs.js15.3.5.4_2-56gs.js15.3.5.4_2-57gs.js15.3.5.4_2-58gs.js15.3.5.4_2-59gs.js15.3.5.4_2-5gs.js15.3.5.4_2-60gs.js15.3.5.4_2-61gs.js15.3.5.4_2-62gs.js15.3.5.4_2-63gs.js15.3.5.4_2-64gs.js15.3.5.4_2-65gs.js15.3.5.4_2-66gs.js15.3.5.4_2-67gs.js15.3.5.4_2-68gs.js15.3.5.4_2-69gs.js15.3.5.4_2-6gs.js15.3.5.4_2-70gs.js15.3.5.4_2-71gs.js15.3.5.4_2-72gs.js15.3.5.4_2-73gs.js15.3.5.4_2-74gs.js15.3.5.4_2-75gs.js15.3.5.4_2-76gs.js15.3.5.4_2-77gs.js15.3.5.4_2-78gs.js15.3.5.4_2-79gs.js15.3.5.4_2-7gs.js15.3.5.4_2-80gs.js15.3.5.4_2-81gs.js15.3.5.4_2-82gs.js15.3.5.4_2-83gs.js15.3.5.4_2-84gs.js15.3.5.4_2-85gs.js15.3.5.4_2-86gs.js15.3.5.4_2-87gs.js15.3.5.4_2-88gs.js15.3.5.4_2-89gs.js

@ -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