diff options
Diffstat (limited to 'test/built-ins/GeneratorFunction')
17 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/GeneratorFunction/extensibility.js b/test/built-ins/GeneratorFunction/extensibility.js index 4328a904e..265cffc02 100644 --- a/test/built-ins/GeneratorFunction/extensibility.js +++ b/test/built-ins/GeneratorFunction/extensibility.js @@ -10,6 +10,6 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; assert(Object.isExtensible(GeneratorFunction)); diff --git a/test/built-ins/GeneratorFunction/has-instance.js b/test/built-ins/GeneratorFunction/has-instance.js index 3b5ad67f8..80d176b78 100644 --- a/test/built-ins/GeneratorFunction/has-instance.js +++ b/test/built-ins/GeneratorFunction/has-instance.js @@ -8,10 +8,10 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; function* gDecl() {} -var gExpr = function*() {}; +var gExpr = function* () {}; assert( gDecl instanceof GeneratorFunction, diff --git a/test/built-ins/GeneratorFunction/instance-construct-throws.js b/test/built-ins/GeneratorFunction/instance-construct-throws.js index 1cec55dd7..8225a4776 100644 --- a/test/built-ins/GeneratorFunction/instance-construct-throws.js +++ b/test/built-ins/GeneratorFunction/instance-construct-throws.js @@ -21,10 +21,10 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var instance = GeneratorFunction(); assert.throws(TypeError, function() { - new instance(); + new instance(); }) diff --git a/test/built-ins/GeneratorFunction/instance-length.js b/test/built-ins/GeneratorFunction/instance-length.js index 0951a1a2a..fb1389f73 100644 --- a/test/built-ins/GeneratorFunction/instance-length.js +++ b/test/built-ins/GeneratorFunction/instance-length.js @@ -25,7 +25,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; assert.sameValue(GeneratorFunction().length, 0); assert.sameValue(GeneratorFunction('').length, 0); diff --git a/test/built-ins/GeneratorFunction/instance-name.js b/test/built-ins/GeneratorFunction/instance-name.js index 88fcd961a..5dab8a312 100644 --- a/test/built-ins/GeneratorFunction/instance-name.js +++ b/test/built-ins/GeneratorFunction/instance-name.js @@ -17,7 +17,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; assert.sameValue(GeneratorFunction().name, 'anonymous'); verifyNotEnumerable(GeneratorFunction(), 'name'); diff --git a/test/built-ins/GeneratorFunction/instance-prototype.js b/test/built-ins/GeneratorFunction/instance-prototype.js index e542b8964..3f6db037d 100644 --- a/test/built-ins/GeneratorFunction/instance-prototype.js +++ b/test/built-ins/GeneratorFunction/instance-prototype.js @@ -21,7 +21,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var instance = GeneratorFunction(); diff --git a/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js b/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js index 419360a88..a04982da8 100644 --- a/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js +++ b/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js @@ -17,7 +17,7 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; // YieldExpression is permitted in function body. GeneratorFunction('x = yield'); diff --git a/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js index 564810fa1..cb5bf8e8a 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js +++ b/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js @@ -8,7 +8,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var g = new GeneratorFunction(); var iter = g(); diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js index 7b7ac8429..a32adad02 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js +++ b/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js @@ -10,7 +10,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var g = GeneratorFunction('x', 'y', 'yield x + y;'); var iter = g(2, 3); diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js index 204d5a30b..928f73374 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js +++ b/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js @@ -8,7 +8,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var g = GeneratorFunction(); var iter = g(); diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js b/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js index 279bfd129..e49ddcbc4 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js +++ b/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js @@ -9,7 +9,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var g = GeneratorFunction('yield 1;'); var iter = g(); diff --git a/test/built-ins/GeneratorFunction/length.js b/test/built-ins/GeneratorFunction/length.js index b989303de..f118d1de6 100644 --- a/test/built-ins/GeneratorFunction/length.js +++ b/test/built-ins/GeneratorFunction/length.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; assert.sameValue(GeneratorFunction.length, 1); diff --git a/test/built-ins/GeneratorFunction/name.js b/test/built-ins/GeneratorFunction/name.js index 2d517748b..99f02561c 100644 --- a/test/built-ins/GeneratorFunction/name.js +++ b/test/built-ins/GeneratorFunction/name.js @@ -20,7 +20,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; assert.sameValue(GeneratorFunction.name, 'GeneratorFunction'); diff --git a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js index 313fd4baa..b8215acf4 100644 --- a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js +++ b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js @@ -29,10 +29,10 @@ info: | features: [generators, cross-realm, Reflect] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var other = $262.createRealm().global; var OtherGeneratorFunction = Object.getPrototypeOf( - other.eval('(0, function* () {})') + other.eval('(0, function* () {})') ).constructor; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/GeneratorFunction/prototype/constructor.js b/test/built-ins/GeneratorFunction/prototype/constructor.js index 87cb43184..26c4370b1 100644 --- a/test/built-ins/GeneratorFunction/prototype/constructor.js +++ b/test/built-ins/GeneratorFunction/prototype/constructor.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; assert.sameValue(GeneratorFunction.prototype.constructor, GeneratorFunction); diff --git a/test/built-ins/GeneratorFunction/prototype/extensibility.js b/test/built-ins/GeneratorFunction/prototype/extensibility.js index ca9f59099..4a7134769 100644 --- a/test/built-ins/GeneratorFunction/prototype/extensibility.js +++ b/test/built-ins/GeneratorFunction/prototype/extensibility.js @@ -10,6 +10,6 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; assert(Object.isExtensible(GeneratorFunction.prototype)); diff --git a/test/built-ins/GeneratorFunction/prototype/prop-desc.js b/test/built-ins/GeneratorFunction/prototype/prop-desc.js index e28a1d04b..1ba38ae8a 100644 --- a/test/built-ins/GeneratorFunction/prototype/prop-desc.js +++ b/test/built-ins/GeneratorFunction/prototype/prop-desc.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; verifyNotEnumerable(GeneratorFunction, 'prototype'); verifyNotWritable(GeneratorFunction, 'prototype'); |