Remove excess leading whitespace

This commit is contained in:
André Bargull 2023-09-13 13:34:46 +02:00 committed by Ms2ger
parent c140af3cb3
commit 1bd99bf069
89 changed files with 336 additions and 334 deletions

View File

@ -7,7 +7,6 @@ description: Strict Mode - arguments object is immutable
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
(function fun() { (function fun() {
eval("arguments = 10"); eval("arguments = 10");

View File

@ -7,7 +7,6 @@ description: Strict Mode - arguments object is immutable in eval'ed functions
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
eval("(function _10_5_7_b_1_fun() { arguments = 10;} ());"); eval("(function _10_5_7_b_1_fun() { arguments = 10;} ());");
}); });

View File

@ -12,6 +12,7 @@ flags: [onlyStrict]
var argObj = function () { var argObj = function () {
return arguments; return arguments;
} (); } ();
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
argObj.callee = {}; argObj.callee = {};
}); });

View File

@ -7,7 +7,6 @@ description: "'length property of arguments object exists"
---*/ ---*/
function testcase() { function testcase() {
var desc = Object.getOwnPropertyDescriptor(arguments,"length"); var desc = Object.getOwnPropertyDescriptor(arguments,"length");
assert.notSameValue(desc, undefined); assert.notSameValue(desc, undefined);
} }

View File

@ -18,6 +18,5 @@ flags: [noStrict]
return typeof(this); return typeof(this);
} }
assert.sameValue(foo.call(1), 'number', 'foo.call(1)'); assert.sameValue(foo.call(1), 'number', 'foo.call(1)');
assert.sameValue(bar.call(1), 'object', 'bar.call(1)'); assert.sameValue(bar.call(1), 'object', 'bar.call(1)');

View File

@ -18,6 +18,5 @@ flags: [noStrict]
return typeof(this); return typeof(this);
} }
assert.sameValue(foo.call('1'), 'string', 'foo.call("1")'); assert.sameValue(foo.call('1'), 'string', 'foo.call("1")');
assert.sameValue(bar.call('1'), 'object', 'bar.call("1")'); assert.sameValue(bar.call('1'), 'object', 'bar.call("1")');

View File

@ -18,6 +18,5 @@ flags: [noStrict]
return typeof(this); return typeof(this);
} }
assert.sameValue(foo.call(true), 'boolean', 'foo.call(true)'); assert.sameValue(foo.call(true), 'boolean', 'foo.call(true)');
assert.sameValue(bar.call(true), 'object', 'bar.call(true)'); assert.sameValue(bar.call(true), 'object', 'bar.call(true)');

View File

@ -13,7 +13,6 @@ description: >
flags: [noStrict] flags: [noStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
eval("var _13_0_13_fun = new Function(\" \", \"'use strict'; eval = 42;\"); _13_0_13_fun();"); eval("var _13_0_13_fun = new Function(\" \", \"'use strict'; eval = 42;\"); _13_0_13_fun();");
}); });

View File

@ -13,7 +13,6 @@ description: >
flags: [noStrict] flags: [noStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
var _13_0_14_fun = new Function(" ", "'use strict'; eval = 42; "); var _13_0_14_fun = new Function(" ", "'use strict'; eval = 42; ");
_13_0_14_fun(); _13_0_14_fun();

View File

@ -13,7 +13,6 @@ description: >
flags: [noStrict] flags: [noStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
eval("'use strict'; function _13_0_15_fun() {eval = 42;};"); eval("'use strict'; function _13_0_15_fun() {eval = 42;};");
_13_0_15_fun(); _13_0_15_fun();

View File

@ -13,7 +13,6 @@ description: >
flags: [noStrict] flags: [noStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
eval("'use strict'; function _13_0_7_fun() {eval = 42;};"); eval("'use strict'; function _13_0_7_fun() {eval = 42;};");
_13_0_7_fun(); _13_0_7_fun();

View File

@ -14,7 +14,6 @@ description: >
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
eval("var _13_1_2_fun = function (eval) { }"); eval("var _13_1_2_fun = function (eval) { }");
}); });

View File

@ -14,7 +14,6 @@ description: >
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
eval("var _13_1_4_fun = function (arguments) { };"); eval("var _13_1_4_fun = function (arguments) { };");
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
var _13_1_41_s = {}; var _13_1_41_s = {};
assert.throws(SyntaxError, function() { assert.throws(SyntaxError, function() {
eval("'use strict'; _13_1_41_s.x = function arguments() {};"); eval("'use strict'; _13_1_41_s.x = function arguments() {};");
}); });

View File

@ -9,6 +9,7 @@ description: >
---*/ ---*/
var foo = Function("'use strict';"); var foo = Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
foo.caller = 41; foo.caller = 41;
}); });

View File

@ -9,6 +9,7 @@ description: >
---*/ ---*/
var foo = new Function("'use strict';"); var foo = new Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
var temp = foo.arguments; var temp = foo.arguments;
}); });

View File

@ -9,6 +9,7 @@ description: >
---*/ ---*/
var foo = new Function("'use strict';"); var foo = new Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
foo.arguments = 41; foo.arguments = 41;
}); });

View File

@ -9,6 +9,7 @@ description: >
---*/ ---*/
var foo = Function("'use strict';"); var foo = Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
var temp = foo.arguments; var temp = foo.arguments;
}); });

View File

@ -9,6 +9,7 @@ description: >
---*/ ---*/
var foo = Function("'use strict';"); var foo = Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
foo.arguments = 41; foo.arguments = 41;
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
function foo () {"use strict";} function foo () {"use strict";}
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
var temp = foo.caller; var temp = foo.caller;
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
function foo () {"use strict";} function foo () {"use strict";}
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
foo.caller = 41; foo.caller = 41;
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
function foo () {"use strict";} function foo () {"use strict";}
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
var temp = foo.arguments; var temp = foo.arguments;
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
function foo () {"use strict";} function foo () {"use strict";}
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
foo.arguments = 41; foo.arguments = 41;
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
var foo = new Function("'use strict';"); var foo = new Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
var temp = foo.caller; var temp = foo.caller;
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
var foo = new Function("'use strict';"); var foo = new Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
foo.caller = 41; foo.caller = 41;
}); });

View File

@ -10,6 +10,7 @@ flags: [noStrict]
---*/ ---*/
var foo = Function("'use strict';"); var foo = Function("'use strict';");
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
var temp = foo.caller; var temp = foo.caller;
}); });