diff --git a/test/built-ins/AsyncFunction/AsyncFunction-construct.js b/test/built-ins/AsyncFunction/AsyncFunction-construct.js index f839e90f01..bb71ff214b 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-construct.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-construct.js @@ -9,7 +9,7 @@ description: > similarly to functions. ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; var fn; fn = AsyncFunction("a", "await 1;"); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js b/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js index f1e790b2a0..16c64658e6 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js @@ -8,6 +8,6 @@ description: > %AsyncFunction% is extensible ---*/ -var AsyncFunction = async function() { }.constructor; +var AsyncFunction = async function() {}.constructor; AsyncFunction.x = 1; assert.sameValue(AsyncFunction.x, 1); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js index 737d3411c0..9eb72139f9 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js @@ -7,9 +7,8 @@ esid: sec-async-function-constructor description: > %AsyncFunction% is a subclass of Function ---*/ -async function foo() { }; +async function foo() {}; var AsyncFunction = foo.constructor; assert.sameValue(Object.getPrototypeOf(AsyncFunction), Function, "Prototype of constructor is Function"); assert.sameValue(Object.getPrototypeOf(AsyncFunction.prototype), Function.prototype, "Prototype of constructor's prototype is Function.prototype"); assert(foo instanceof Function, 'async function instance is instanceof Function'); - diff --git a/test/built-ins/AsyncFunction/AsyncFunction-length.js b/test/built-ins/AsyncFunction/AsyncFunction-length.js index 60af9c72fd..c6ba9360eb 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-length.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-length.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(AsyncFunction.length, 1); verifyNotWritable(AsyncFunction, 'length'); verifyNotEnumerable(AsyncFunction, 'length'); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-name.js b/test/built-ins/AsyncFunction/AsyncFunction-name.js index cdc9ab069a..637d1ece14 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-name.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-name.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(AsyncFunction.name, "AsyncFunction"); verifyNotWritable(AsyncFunction, "name"); verifyNotEnumerable(AsyncFunction, "name"); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-prototype.js b/test/built-ins/AsyncFunction/AsyncFunction-prototype.js index 2a2801238d..99a040b3f3 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-prototype.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-prototype.js @@ -8,7 +8,7 @@ description: AsyncFunction has a prototype property with writable false, enumera includes: [propertyHelper.js] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; verifyNotConfigurable(AsyncFunction, 'prototype'); verifyNotWritable(AsyncFunction, 'prototype'); verifyNotEnumerable(AsyncFunction, 'prototype'); diff --git a/test/built-ins/AsyncFunction/AsyncFunction.js b/test/built-ins/AsyncFunction/AsyncFunction.js index 2f958c813e..77c5aaef3b 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction.js +++ b/test/built-ins/AsyncFunction/AsyncFunction.js @@ -8,5 +8,5 @@ description: > %AsyncFunction% exists and is a function ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(typeof AsyncFunction, "function"); diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js index 5dd8cdb97b..f8e4d7dde6 100644 --- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js +++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js @@ -8,7 +8,6 @@ description: > %AsyncFunctionPrototype% has a [[Extensible]] of true ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; AsyncFunction.prototype.x = 1; assert.sameValue(AsyncFunction.prototype.x, 1); - diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js index a917fbd258..327c5ee0fe 100644 --- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js +++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js @@ -6,5 +6,5 @@ author: Brian Terlson esid: sec-sync-function-prototype-properties description: AsyncFunction.prototype has a [[prototype]] of Function.prototype ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(Object.getPrototypeOf(AsyncFunction.prototype), Function.prototype); diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js index e2a35b2105..d9e8cb1ecf 100644 --- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js +++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] features: [Symbol.toStringTag] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; var AFP = AsyncFunction.prototype; assert.sameValue(AFP[Symbol.toStringTag], "AsyncFunction", "toStringTag value"); verifyNotWritable(AFP, Symbol.toStringTag); diff --git a/test/built-ins/AsyncFunction/instance-construct-throws.js b/test/built-ins/AsyncFunction/instance-construct-throws.js index 1ca25171fe..8c5bec687c 100644 --- a/test/built-ins/AsyncFunction/instance-construct-throws.js +++ b/test/built-ins/AsyncFunction/instance-construct-throws.js @@ -25,7 +25,7 @@ info: | ... ---*/ -async function foo() { } +async function foo() {} assert.throws(TypeError, function() { new foo(); }); diff --git a/test/built-ins/AsyncFunction/instance-has-name.js b/test/built-ins/AsyncFunction/instance-has-name.js index cf118edae9..1def25c881 100644 --- a/test/built-ins/AsyncFunction/instance-has-name.js +++ b/test/built-ins/AsyncFunction/instance-has-name.js @@ -8,7 +8,7 @@ description: Async function declarations have a name property includes: [propertyHelper.js] ---*/ -async function foo () { }; +async function foo() {}; assert.sameValue(foo.name, "foo"); verifyNotWritable(foo, "name"); diff --git a/test/built-ins/AsyncFunction/instance-length.js b/test/built-ins/AsyncFunction/instance-length.js index 288ab45343..dd278bd05b 100644 --- a/test/built-ins/AsyncFunction/instance-length.js +++ b/test/built-ins/AsyncFunction/instance-length.js @@ -10,9 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -async function l0() { } -async function l1(a) { } -async function l2(a, b) { } +async function l0() {} +async function l1(a) {} +async function l2(a, b) {} assert.sameValue(l0.length, 0); assert.sameValue(l1.length, 1); assert.sameValue(l2.length, 2) diff --git a/test/built-ins/AsyncFunction/instance-prototype-property.js b/test/built-ins/AsyncFunction/instance-prototype-property.js index 3b631ae283..6e14bff3f0 100644 --- a/test/built-ins/AsyncFunction/instance-prototype-property.js +++ b/test/built-ins/AsyncFunction/instance-prototype-property.js @@ -7,6 +7,6 @@ esid: sec-async-function-instances description: > Async function instances do not have a prototype property. ---*/ -async function foo() { }; +async function foo() {}; assert.sameValue(foo.prototype, undefined, 'foo.prototype should be undefined'); assert(!foo.hasOwnProperty('prototype'), 'foo.prototype should not exist'); diff --git a/test/built-ins/AsyncFunction/is-not-a-global.js b/test/built-ins/AsyncFunction/is-not-a-global.js index baf5140ff5..432ebf9a18 100644 --- a/test/built-ins/AsyncFunction/is-not-a-global.js +++ b/test/built-ins/AsyncFunction/is-not-a-global.js @@ -8,6 +8,6 @@ description: > %AsyncFunction% is not exposed as a global ---*/ -assert.throws(ReferenceError, function () { +assert.throws(ReferenceError, function() { AsyncFunction }, "AsyncFunction should not be present as a global");