From bc70e0339f2221787f11396cfc22c6e333148914 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 15 Feb 2018 15:41:09 -0500 Subject: [PATCH] built-ins/ThrowTypeError/*: make all indentation consistent (depth & character) (#1427) --- test/built-ins/ThrowTypeError/distinct-cross-realm.js | 5 ++++- test/built-ins/ThrowTypeError/extensible.js | 5 ++++- test/built-ins/ThrowTypeError/forbidden-arguments.js | 5 ++++- test/built-ins/ThrowTypeError/forbidden-caller.js | 5 ++++- test/built-ins/ThrowTypeError/frozen.js | 5 ++++- test/built-ins/ThrowTypeError/is-function.js | 5 ++++- test/built-ins/ThrowTypeError/length.js | 5 ++++- test/built-ins/ThrowTypeError/name.js | 5 ++++- test/built-ins/ThrowTypeError/prototype.js | 5 ++++- test/built-ins/ThrowTypeError/throws-type-error.js | 5 ++++- .../ThrowTypeError/unique-per-realm-function-proto.js | 5 ++++- test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js | 5 ++++- .../ThrowTypeError/unique-per-realm-unmapped-args.js | 5 ++++- 13 files changed, 52 insertions(+), 13 deletions(-) diff --git a/test/built-ins/ThrowTypeError/distinct-cross-realm.js b/test/built-ins/ThrowTypeError/distinct-cross-realm.js index 3fb4122969..b256601791 100644 --- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js +++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js @@ -13,7 +13,10 @@ features: [cross-realm] ---*/ var other = $262.createRealm().global; -var localArgs = function(){ "use strict"; return arguments; }(); +var localArgs = function() { + "use strict"; + return arguments; +}(); var otherArgs = (new other.Function('return arguments;'))(); var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get; var otherThrowTypeError = Object.getOwnPropertyDescriptor(otherArgs, "callee").get; diff --git a/test/built-ins/ThrowTypeError/extensible.js b/test/built-ins/ThrowTypeError/extensible.js index c6c93ae282..ac42dadf97 100644 --- a/test/built-ins/ThrowTypeError/extensible.js +++ b/test/built-ins/ThrowTypeError/extensible.js @@ -12,6 +12,9 @@ info: | function is false. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.isExtensible(ThrowTypeError), false); diff --git a/test/built-ins/ThrowTypeError/forbidden-arguments.js b/test/built-ins/ThrowTypeError/forbidden-arguments.js index d4d8cbda97..7532de5056 100644 --- a/test/built-ins/ThrowTypeError/forbidden-arguments.js +++ b/test/built-ins/ThrowTypeError/forbidden-arguments.js @@ -25,6 +25,9 @@ info: | properties. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "arguments"), false); diff --git a/test/built-ins/ThrowTypeError/forbidden-caller.js b/test/built-ins/ThrowTypeError/forbidden-caller.js index e2d7bece10..6aa2fb62cb 100644 --- a/test/built-ins/ThrowTypeError/forbidden-caller.js +++ b/test/built-ins/ThrowTypeError/forbidden-caller.js @@ -25,6 +25,9 @@ info: | properties. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "caller"), false); diff --git a/test/built-ins/ThrowTypeError/frozen.js b/test/built-ins/ThrowTypeError/frozen.js index 011f62f8c1..76c9b6ec70 100644 --- a/test/built-ins/ThrowTypeError/frozen.js +++ b/test/built-ins/ThrowTypeError/frozen.js @@ -14,6 +14,9 @@ info: | { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.isFrozen(ThrowTypeError), true); diff --git a/test/built-ins/ThrowTypeError/is-function.js b/test/built-ins/ThrowTypeError/is-function.js index 553a8fe41a..b3d15916d7 100644 --- a/test/built-ins/ThrowTypeError/is-function.js +++ b/test/built-ins/ThrowTypeError/is-function.js @@ -12,6 +12,9 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(typeof ThrowTypeError, "function"); diff --git a/test/built-ins/ThrowTypeError/length.js b/test/built-ins/ThrowTypeError/length.js index 5e74e1745c..5a14e231b8 100644 --- a/test/built-ins/ThrowTypeError/length.js +++ b/test/built-ins/ThrowTypeError/length.js @@ -13,7 +13,10 @@ info: | includes: [propertyHelper.js] ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(ThrowTypeError.length, 0); diff --git a/test/built-ins/ThrowTypeError/name.js b/test/built-ins/ThrowTypeError/name.js index d2cb287c33..d894ee12f3 100644 --- a/test/built-ins/ThrowTypeError/name.js +++ b/test/built-ins/ThrowTypeError/name.js @@ -12,6 +12,9 @@ info: | object that is defined once for each Realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "name"), false); diff --git a/test/built-ins/ThrowTypeError/prototype.js b/test/built-ins/ThrowTypeError/prototype.js index 4ad20323b5..fcb92f4311 100644 --- a/test/built-ins/ThrowTypeError/prototype.js +++ b/test/built-ins/ThrowTypeError/prototype.js @@ -19,6 +19,9 @@ info: | ... ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.getPrototypeOf(ThrowTypeError), Function.prototype); diff --git a/test/built-ins/ThrowTypeError/throws-type-error.js b/test/built-ins/ThrowTypeError/throws-type-error.js index 577dc45602..b2df50ca11 100644 --- a/test/built-ins/ThrowTypeError/throws-type-error.js +++ b/test/built-ins/ThrowTypeError/throws-type-error.js @@ -13,7 +13,10 @@ info: | 1. Throw a TypeError exception. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.throws(TypeError, function() { ThrowTypeError(); diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js index a5235f1c3c..47fdb00d1d 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with Function.prototype.arguments and Function.prototype.caller properties. var argumentsDesc = Object.getOwnPropertyDescriptor(Function.prototype, "arguments"); diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js index a69be6bf46..f30052e0bc 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with unmapped arguments object from function with non-simple parameters list. function nonSimple(a = 0) { diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js index 66dee2bd40..0572252987 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with unmapped arguments object from strict-mode function. function strictFn() {