diff --git a/test/built-ins/Array/prototype/flatMap/this-value-ctor-object-species-bad-throws.js b/test/built-ins/Array/prototype/flatMap/this-value-ctor-object-species-bad-throws.js index 64fdb6ea10..9ea5f2a02b 100644 --- a/test/built-ins/Array/prototype/flatMap/this-value-ctor-object-species-bad-throws.js +++ b/test/built-ins/Array/prototype/flatMap/this-value-ctor-object-species-bad-throws.js @@ -126,4 +126,4 @@ arr.constructor = { assert.throws(Test262Error, function() { arr.flatMap(mapperFn); }, 'Return abrupt completion from getting the @@species'); -assert.sameValue(called, 1, 'got species once'); \ No newline at end of file +assert.sameValue(called, 1, 'got species once'); diff --git a/test/built-ins/Atomics/add/bigint/nonshared-int-views.js b/test/built-ins/Atomics/add/bigint/nonshared-int-views.js index 1231021f15..919a01d439 100644 --- a/test/built-ins/Atomics/add/bigint/nonshared-int-views.js +++ b/test/built-ins/Atomics/add/bigint/nonshared-int-views.js @@ -13,4 +13,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { Atomics.add(new TA(ab), 0, 0n); }, '`Atomics.add(new TA(ab), 0, 0n)` throws TypeError'); -}); \ No newline at end of file +}); diff --git a/test/built-ins/Atomics/and/bigint/nonshared-int-views.js b/test/built-ins/Atomics/and/bigint/nonshared-int-views.js index e4d86fbee4..d412968d84 100644 --- a/test/built-ins/Atomics/and/bigint/nonshared-int-views.js +++ b/test/built-ins/Atomics/and/bigint/nonshared-int-views.js @@ -13,4 +13,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { Atomics.and(new TA(buffer), 0, 0n); }, '`Atomics.and(new TA(buffer), 0, 0n)` throws TypeError'); -}); \ No newline at end of file +}); diff --git a/test/built-ins/Atomics/compareExchange/bigint/nonshared-int-views.js b/test/built-ins/Atomics/compareExchange/bigint/nonshared-int-views.js index ad4cb89f10..21d676bb5c 100644 --- a/test/built-ins/Atomics/compareExchange/bigint/nonshared-int-views.js +++ b/test/built-ins/Atomics/compareExchange/bigint/nonshared-int-views.js @@ -13,4 +13,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { Atomics.compareExchange(new TA(buffer), 0, 0n, 0n); }, '`Atomics.compareExchange(new TA(buffer), 0, 0n, 0n)` throws TypeError'); -}); \ No newline at end of file +}); diff --git a/test/built-ins/Atomics/exchange/bigint/nonshared-int-views.js b/test/built-ins/Atomics/exchange/bigint/nonshared-int-views.js index c5fc8213b5..0d8e607b48 100644 --- a/test/built-ins/Atomics/exchange/bigint/nonshared-int-views.js +++ b/test/built-ins/Atomics/exchange/bigint/nonshared-int-views.js @@ -13,4 +13,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { Atomics.exchange(new TA(buffer), 0n, 0n); }, '`Atomics.exchange(new TA(buffer), 0n, 0n)` throws TypeError'); -}); \ No newline at end of file +}); diff --git a/test/built-ins/Atomics/or/bigint/nonshared-int-views.js b/test/built-ins/Atomics/or/bigint/nonshared-int-views.js index 1dea6f2429..1767ea4358 100644 --- a/test/built-ins/Atomics/or/bigint/nonshared-int-views.js +++ b/test/built-ins/Atomics/or/bigint/nonshared-int-views.js @@ -13,4 +13,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { Atomics.or(new TA(buffer), 0, 0n); }, '`Atomics.or(new TA(buffer), 0, 0n)` throws TypeError'); -}); \ No newline at end of file +}); diff --git a/test/built-ins/Atomics/store/bigint/nonshared-int-views.js b/test/built-ins/Atomics/store/bigint/nonshared-int-views.js index b1999d514e..b89c809533 100644 --- a/test/built-ins/Atomics/store/bigint/nonshared-int-views.js +++ b/test/built-ins/Atomics/store/bigint/nonshared-int-views.js @@ -13,4 +13,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { Atomics.store(new TA(buffer), 0, 0n); }, '`Atomics.store(new TA(buffer), 0, 0n)` throws TypeError'); -}); \ No newline at end of file +}); diff --git a/test/built-ins/Atomics/sub/bigint/nonshared-int-views.js b/test/built-ins/Atomics/sub/bigint/nonshared-int-views.js index 58274797df..7185801041 100644 --- a/test/built-ins/Atomics/sub/bigint/nonshared-int-views.js +++ b/test/built-ins/Atomics/sub/bigint/nonshared-int-views.js @@ -13,4 +13,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { Atomics.sub(new TA(buffer), 0, 0n); }, '`Atomics.sub(new TA(buffer), 0, 0n)` throws TypeError'); -}); \ No newline at end of file +}); diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js index 6033b10109..402c0b80fe 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js @@ -1 +1 @@ -// Copyright (C) 2016 Michael Ficarra. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString line terminator normalisation (CR) info: | Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. This file uses Carriage Return characters as line terminators. includes: [nativeFunctionMatcher.js] ---*/ // before function // a f // b ( // c x // d , // e y // f ) // g { // h ; // i ; // j } // after assertToStringOrNativeFunction(f, "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}"); \ No newline at end of file +// Copyright (C) 2016 Michael Ficarra. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString line terminator normalisation (CR) info: | Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. This file uses Carriage Return characters as line terminators. includes: [nativeFunctionMatcher.js] ---*/ // before function // a f // b ( // c x // d , // e y // f ) // g { // h ; // i ; // j } // after assertToStringOrNativeFunction(f, "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}"); diff --git a/test/built-ins/RegExp/match-indices/indices-array.js b/test/built-ins/RegExp/match-indices/indices-array.js index 8a244a6208..7288dd19b5 100644 --- a/test/built-ins/RegExp/match-indices/indices-array.js +++ b/test/built-ins/RegExp/match-indices/indices-array.js @@ -15,4 +15,4 @@ let indices = match.indices; // `indices` is an array assert.sameValue(Object.getPrototypeOf(indices), Array.prototype); -assert(Array.isArray(indices)); \ No newline at end of file +assert(Array.isArray(indices)); diff --git a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js index 906ec4746d..f5831d833c 100644 --- a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js +++ b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js @@ -54,4 +54,4 @@ assert.throws(TypeError, function() { assert.sameValue( getIterator, 0, "IsCallable(mapfn) check occurs before getting source[@@iterator]" -); \ No newline at end of file +); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length-throws.js index 6f699c2d32..3f8cb632de 100644 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length-throws.js +++ b/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length-throws.js @@ -38,4 +38,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { sample.slice(); }); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length.js b/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length.js index 5159487aee..3872088bbe 100644 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length.js +++ b/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-length.js @@ -43,4 +43,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { customCount = 5; result = sample.slice(); assert.sameValue(result.length, customCount, "length > count"); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js index 8d572f230a..7ff46d746d 100644 --- a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js +++ b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js @@ -38,4 +38,4 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { sample.slice(); }); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js index 537b423a22..a4d33b2a9c 100644 --- a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js +++ b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js @@ -43,4 +43,4 @@ testWithTypedArrayConstructors(function(TA) { customCount = 5; result = sample.slice(); assert.sameValue(result.length, customCount, "length > count"); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArrayConstructors/from/nan-conversion.js b/test/built-ins/TypedArrayConstructors/from/nan-conversion.js index df90a868ae..6c01a614aa 100644 --- a/test/built-ins/TypedArrayConstructors/from/nan-conversion.js +++ b/test/built-ins/TypedArrayConstructors/from/nan-conversion.js @@ -47,4 +47,4 @@ testWithTypedArrayConstructors(function(TA) { Uint16Array, Uint8Array, Uint8ClampedArray -]); \ No newline at end of file +]); diff --git a/test/built-ins/TypedArrayConstructors/from/new-instance-from-zero.js b/test/built-ins/TypedArrayConstructors/from/new-instance-from-zero.js index ef06c4b93b..2850dfcdeb 100644 --- a/test/built-ins/TypedArrayConstructors/from/new-instance-from-zero.js +++ b/test/built-ins/TypedArrayConstructors/from/new-instance-from-zero.js @@ -37,4 +37,4 @@ testWithTypedArrayConstructors(function(TA) { Uint32Array, Uint8Array, Uint8ClampedArray -]); \ No newline at end of file +]); diff --git a/test/built-ins/TypedArrayConstructors/of/BigInt/inherited.js b/test/built-ins/TypedArrayConstructors/of/BigInt/inherited.js index 71a3dc3d6c..d00bec61a2 100644 --- a/test/built-ins/TypedArrayConstructors/of/BigInt/inherited.js +++ b/test/built-ins/TypedArrayConstructors/of/BigInt/inherited.js @@ -22,4 +22,4 @@ testWithBigIntTypedArrayConstructors(function(TA) { TA.hasOwnProperty("of"), false, "constructor does not define an own property named 'of'" ); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArrayConstructors/of/inherited.js b/test/built-ins/TypedArrayConstructors/of/inherited.js index 4f040e4e97..6a7ee304b3 100644 --- a/test/built-ins/TypedArrayConstructors/of/inherited.js +++ b/test/built-ins/TypedArrayConstructors/of/inherited.js @@ -22,4 +22,4 @@ testWithTypedArrayConstructors(function(TA) { TA.hasOwnProperty("of"), false, "constructor does not define an own property named 'of'" ); -}); \ No newline at end of file +}); diff --git a/test/built-ins/WeakRef/prototype-from-newtarget-abrupt.js b/test/built-ins/WeakRef/prototype-from-newtarget-abrupt.js index 952b2afb8c..3fc048a38f 100644 --- a/test/built-ins/WeakRef/prototype-from-newtarget-abrupt.js +++ b/test/built-ins/WeakRef/prototype-from-newtarget-abrupt.js @@ -39,4 +39,4 @@ assert.throws(Test262Error, function() { Reflect.construct(WeakRef, [{}], newTarget); }); -assert.sameValue(calls, 1); \ No newline at end of file +assert.sameValue(calls, 1); diff --git a/test/language/destructuring/binding/syntax/property-list-single-name-bindings.js b/test/language/destructuring/binding/syntax/property-list-single-name-bindings.js index 502ecc081e..8c218bb236 100644 --- a/test/language/destructuring/binding/syntax/property-list-single-name-bindings.js +++ b/test/language/destructuring/binding/syntax/property-list-single-name-bindings.js @@ -30,4 +30,4 @@ features: [destructuring-binding] function fna({x}) {} function fnb({x, y}) {} function fnc({x = 42}) {} -function fnd({x, y = 42}) {} \ No newline at end of file +function fnd({x, y = 42}) {} diff --git a/test/language/expressions/addition/bigint-and-number.js b/test/language/expressions/addition/bigint-and-number.js index c4c47f3bc5..657b3d003a 100644 --- a/test/language/expressions/addition/bigint-and-number.js +++ b/test/language/expressions/addition/bigint-and-number.js @@ -82,4 +82,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined + 1n; -}, 'undefined + 1n throws TypeError'); \ No newline at end of file +}, 'undefined + 1n throws TypeError'); diff --git a/test/language/expressions/addition/bigint-arithmetic.js b/test/language/expressions/addition/bigint-arithmetic.js index 2d1b72d0b3..8928ec672a 100644 --- a/test/language/expressions/addition/bigint-arithmetic.js +++ b/test/language/expressions/addition/bigint-arithmetic.js @@ -1398,4 +1398,4 @@ assert.sameValue( -0xFEDCBA9876543210n + -0xFEDCBA9876543210n, -0x1FDB97530ECA86420n, 'The result of (-0xFEDCBA9876543210n + -0xFEDCBA9876543210n) is -0x1FDB97530ECA86420n' -); \ No newline at end of file +); diff --git a/test/language/expressions/addition/bigint-errors.js b/test/language/expressions/addition/bigint-errors.js index 43a4edaa47..36b209c52b 100644 --- a/test/language/expressions/addition/bigint-errors.js +++ b/test/language/expressions/addition/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n + {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n + {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/addition/bigint-toprimitive.js b/test/language/expressions/addition/bigint-toprimitive.js index 0162cf422b..031fe9d8e8 100644 --- a/test/language/expressions/addition/bigint-toprimitive.js +++ b/test/language/expressions/addition/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n + {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n + {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/addition/bigint-wrapped-values.js b/test/language/expressions/addition/bigint-wrapped-values.js index ef9ac31fc2..b2c61b4d6a 100644 --- a/test/language/expressions/addition/bigint-wrapped-values.js +++ b/test/language/expressions/addition/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(1n + { toString: function() { return 2n; } -}, 3n, 'The result of (1n + {toString: function() {return 2n;}}) is 3n'); \ No newline at end of file +}, 3n, 'The result of (1n + {toString: function() {return 2n;}}) is 3n'); diff --git a/test/language/expressions/bitwise-and/bigint-and-number.js b/test/language/expressions/bitwise-and/bigint-and-number.js index b347a2ec8d..2ba29936bf 100644 --- a/test/language/expressions/bitwise-and/bigint-and-number.js +++ b/test/language/expressions/bitwise-and/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined & 1n; -}, 'undefined & 1n throws TypeError'); \ No newline at end of file +}, 'undefined & 1n throws TypeError'); diff --git a/test/language/expressions/bitwise-and/bigint-errors.js b/test/language/expressions/bitwise-and/bigint-errors.js index f4fe031516..46be484dcd 100644 --- a/test/language/expressions/bitwise-and/bigint-errors.js +++ b/test/language/expressions/bitwise-and/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n & {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n & {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/bitwise-and/bigint-non-primitive.js b/test/language/expressions/bitwise-and/bigint-non-primitive.js index 393abed9fb..61b0e75976 100644 --- a/test/language/expressions/bitwise-and/bigint-non-primitive.js +++ b/test/language/expressions/bitwise-and/bigint-non-primitive.js @@ -78,4 +78,4 @@ assert.sameValue(0b011n & { toString: function() { return 0b101n; } -}, 0b001n, 'The result of (0b011n & {toString: function() {return 0b101n;}}) is 0b001n'); \ No newline at end of file +}, 0b001n, 'The result of (0b011n & {toString: function() {return 0b101n;}}) is 0b001n'); diff --git a/test/language/expressions/bitwise-and/bigint-toprimitive.js b/test/language/expressions/bitwise-and/bigint-toprimitive.js index 8b12907dee..33e5fc0059 100644 --- a/test/language/expressions/bitwise-and/bigint-toprimitive.js +++ b/test/language/expressions/bitwise-and/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n & {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n & {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/bitwise-and/bigint-wrapped-values.js b/test/language/expressions/bitwise-and/bigint-wrapped-values.js index 9a0f6c211e..8d888bb549 100644 --- a/test/language/expressions/bitwise-and/bigint-wrapped-values.js +++ b/test/language/expressions/bitwise-and/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(3n & { toString: function() { return 2n; } -}, 2n, 'The result of (3n & {toString: function() {return 2n;}}) is 2n'); \ No newline at end of file +}, 2n, 'The result of (3n & {toString: function() {return 2n;}}) is 2n'); diff --git a/test/language/expressions/bitwise-not/bigint-non-primitive.js b/test/language/expressions/bitwise-not/bigint-non-primitive.js index 9a9c178bcb..4ac9c7dc46 100644 --- a/test/language/expressions/bitwise-not/bigint-non-primitive.js +++ b/test/language/expressions/bitwise-not/bigint-non-primitive.js @@ -41,4 +41,4 @@ assert.sameValue(~{ toString: function() { return 1n; } -}, -2n, 'The value of ~{toString: function() {return 1n;}} is -2n'); \ No newline at end of file +}, -2n, 'The value of ~{toString: function() {return 1n;}} is -2n'); diff --git a/test/language/expressions/bitwise-or/bigint-and-number.js b/test/language/expressions/bitwise-or/bigint-and-number.js index acf96ff247..885451cbba 100644 --- a/test/language/expressions/bitwise-or/bigint-and-number.js +++ b/test/language/expressions/bitwise-or/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined | 1n; -}, 'undefined | 1n throws TypeError'); \ No newline at end of file +}, 'undefined | 1n throws TypeError'); diff --git a/test/language/expressions/bitwise-or/bigint-errors.js b/test/language/expressions/bitwise-or/bigint-errors.js index f0ab953b12..67d1fc4dd0 100644 --- a/test/language/expressions/bitwise-or/bigint-errors.js +++ b/test/language/expressions/bitwise-or/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n | {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n | {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/bitwise-or/bigint-non-primitive.js b/test/language/expressions/bitwise-or/bigint-non-primitive.js index 1faec3e070..5742c93c20 100644 --- a/test/language/expressions/bitwise-or/bigint-non-primitive.js +++ b/test/language/expressions/bitwise-or/bigint-non-primitive.js @@ -79,4 +79,4 @@ assert.sameValue(0b011n | { toString: function() { return 0b101n; } -}, 0b111n, 'The result of (0b011n | {toString: function() {return 0b101n;}}) is 0b111n'); \ No newline at end of file +}, 0b111n, 'The result of (0b011n | {toString: function() {return 0b101n;}}) is 0b111n'); diff --git a/test/language/expressions/bitwise-or/bigint-toprimitive.js b/test/language/expressions/bitwise-or/bigint-toprimitive.js index c9151c5c80..7996e00d5d 100644 --- a/test/language/expressions/bitwise-or/bigint-toprimitive.js +++ b/test/language/expressions/bitwise-or/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n | {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n | {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/bitwise-or/bigint-wrapped-values.js b/test/language/expressions/bitwise-or/bigint-wrapped-values.js index d51629dc6d..6128c94a3c 100644 --- a/test/language/expressions/bitwise-or/bigint-wrapped-values.js +++ b/test/language/expressions/bitwise-or/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(1n | { toString: function() { return 2n; } -}, 3n, 'The result of (1n | {toString: function() {return 2n;}}) is 3n'); \ No newline at end of file +}, 3n, 'The result of (1n | {toString: function() {return 2n;}}) is 3n'); diff --git a/test/language/expressions/bitwise-xor/bigint-and-number.js b/test/language/expressions/bitwise-xor/bigint-and-number.js index 87da2a623f..c9eadd0709 100644 --- a/test/language/expressions/bitwise-xor/bigint-and-number.js +++ b/test/language/expressions/bitwise-xor/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined ^ 1n; -}, 'undefined ^ 1n throws TypeError'); \ No newline at end of file +}, 'undefined ^ 1n throws TypeError'); diff --git a/test/language/expressions/bitwise-xor/bigint-errors.js b/test/language/expressions/bitwise-xor/bigint-errors.js index b0994288e5..517425c329 100644 --- a/test/language/expressions/bitwise-xor/bigint-errors.js +++ b/test/language/expressions/bitwise-xor/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n ^ {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n ^ {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/bitwise-xor/bigint-non-primitive.js b/test/language/expressions/bitwise-xor/bigint-non-primitive.js index 74cfd4372f..2fc636f7f1 100644 --- a/test/language/expressions/bitwise-xor/bigint-non-primitive.js +++ b/test/language/expressions/bitwise-xor/bigint-non-primitive.js @@ -79,4 +79,4 @@ assert.sameValue(0b011n ^ { toString: function() { return 0b101n; } -}, 0b110n, 'The result of (0b011n ^ {toString: function() {return 0b101n;}}) is 0b110n'); \ No newline at end of file +}, 0b110n, 'The result of (0b011n ^ {toString: function() {return 0b101n;}}) is 0b110n'); diff --git a/test/language/expressions/bitwise-xor/bigint-toprimitive.js b/test/language/expressions/bitwise-xor/bigint-toprimitive.js index e777196ff0..8ed7881fca 100644 --- a/test/language/expressions/bitwise-xor/bigint-toprimitive.js +++ b/test/language/expressions/bitwise-xor/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n ^ {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n ^ {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/bitwise-xor/bigint-wrapped-values.js b/test/language/expressions/bitwise-xor/bigint-wrapped-values.js index 36d61d6405..facb64803a 100644 --- a/test/language/expressions/bitwise-xor/bigint-wrapped-values.js +++ b/test/language/expressions/bitwise-xor/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(3n ^ { toString: function() { return 2n; } -}, 1n, 'The result of (3n ^ {toString: function() {return 2n;}}) is 1n'); \ No newline at end of file +}, 1n, 'The result of (3n ^ {toString: function() {return 2n;}}) is 1n'); diff --git a/test/language/expressions/division/bigint-and-number.js b/test/language/expressions/division/bigint-and-number.js index 22d1ef4c24..e99403e435 100644 --- a/test/language/expressions/division/bigint-and-number.js +++ b/test/language/expressions/division/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined / 1n; -}, 'undefined / 1n throws TypeError'); \ No newline at end of file +}, 'undefined / 1n throws TypeError'); diff --git a/test/language/expressions/division/bigint-arithmetic.js b/test/language/expressions/division/bigint-arithmetic.js index 2a44f892fd..aec40e05e5 100644 --- a/test/language/expressions/division/bigint-arithmetic.js +++ b/test/language/expressions/division/bigint-arithmetic.js @@ -1067,4 +1067,4 @@ assert.sameValue( -0xFEDCBA9876543210n / -0xFEDCBA9876543210n, 0x1n, 'The result of (-0xFEDCBA9876543210n / -0xFEDCBA9876543210n) is 0x1n' -); \ No newline at end of file +); diff --git a/test/language/expressions/division/bigint-complex-infinity.js b/test/language/expressions/division/bigint-complex-infinity.js index 508a580e40..fd8a777ffe 100644 --- a/test/language/expressions/division/bigint-complex-infinity.js +++ b/test/language/expressions/division/bigint-complex-infinity.js @@ -32,4 +32,4 @@ assert.throws(RangeError, function() { assert.throws(RangeError, function() { 1000000000000000000n / 0n; -}, '1000000000000000000n / 0n throws RangeError'); \ No newline at end of file +}, '1000000000000000000n / 0n throws RangeError'); diff --git a/test/language/expressions/division/bigint-errors.js b/test/language/expressions/division/bigint-errors.js index cfc554cd75..a08e90fa9a 100644 --- a/test/language/expressions/division/bigint-errors.js +++ b/test/language/expressions/division/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n / {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n / {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/division/bigint-toprimitive.js b/test/language/expressions/division/bigint-toprimitive.js index d525e1e794..564b7cd593 100644 --- a/test/language/expressions/division/bigint-toprimitive.js +++ b/test/language/expressions/division/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n / {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n / {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/division/bigint-wrapped-values.js b/test/language/expressions/division/bigint-wrapped-values.js index 16fe89ae7a..bd8aa1b37a 100644 --- a/test/language/expressions/division/bigint-wrapped-values.js +++ b/test/language/expressions/division/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(2n / { toString: function() { return 2n; } -}, 1n, 'The result of (2n / {toString: function() {return 2n;}}) is 1n'); \ No newline at end of file +}, 1n, 'The result of (2n / {toString: function() {return 2n;}}) is 1n'); diff --git a/test/language/expressions/does-not-equals/bigint-and-bigint.js b/test/language/expressions/does-not-equals/bigint-and-bigint.js index ed49cad23e..5fd964193b 100644 --- a/test/language/expressions/does-not-equals/bigint-and-bigint.js +++ b/test/language/expressions/does-not-equals/bigint-and-bigint.js @@ -168,4 +168,4 @@ assert.sameValue( 0x100000000n != 0x10000000000000000n, true, 'The result of (0x100000000n != 0x10000000000000000n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/does-not-equals/bigint-and-boolean.js b/test/language/expressions/does-not-equals/bigint-and-boolean.js index c8c6bf3d9b..1176fb0fea 100644 --- a/test/language/expressions/does-not-equals/bigint-and-boolean.js +++ b/test/language/expressions/does-not-equals/bigint-and-boolean.js @@ -28,4 +28,4 @@ assert.sameValue(true != 1n, false, 'The result of (true != 1n) is false'); assert.sameValue(2n != false, true, 'The result of (2n != false) is true'); assert.sameValue(false != 2n, true, 'The result of (false != 2n) is true'); assert.sameValue(2n != true, true, 'The result of (2n != true) is true'); -assert.sameValue(true != 2n, true, 'The result of (true != 2n) is true'); \ No newline at end of file +assert.sameValue(true != 2n, true, 'The result of (true != 2n) is true'); diff --git a/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js b/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js index 07bd83bdae..484ee22202 100644 --- a/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js @@ -22,4 +22,4 @@ assert.sameValue(null != 1n, true, 'The result of (null != 1n) is true'); assert.sameValue(0n != Symbol('1'), true, 'The result of (0n != Symbol("1")) is true'); assert.sameValue(Symbol('1') != 0n, true, 'The result of (Symbol("1") != 0n) is true'); assert.sameValue(1n != Symbol('1'), true, 'The result of (1n != Symbol("1")) is true'); -assert.sameValue(Symbol('1') != 1n, true, 'The result of (Symbol("1") != 1n) is true'); \ No newline at end of file +assert.sameValue(Symbol('1') != 1n, true, 'The result of (Symbol("1") != 1n) is true'); diff --git a/test/language/expressions/does-not-equals/bigint-and-non-finite.js b/test/language/expressions/does-not-equals/bigint-and-non-finite.js index 0093074ae8..c0c5d997bd 100644 --- a/test/language/expressions/does-not-equals/bigint-and-non-finite.js +++ b/test/language/expressions/does-not-equals/bigint-and-non-finite.js @@ -26,4 +26,4 @@ assert.sameValue(NaN != 0n, true, 'The result of (NaN != 0n) is true'); assert.sameValue(1n != NaN, true, 'The result of (1n != NaN) is true'); assert.sameValue(NaN != 1n, true, 'The result of (NaN != 1n) is true'); assert.sameValue(-1n != NaN, true, 'The result of (-1n != NaN) is true'); -assert.sameValue(NaN != -1n, true, 'The result of (NaN != -1n) is true'); \ No newline at end of file +assert.sameValue(NaN != -1n, true, 'The result of (NaN != -1n) is true'); diff --git a/test/language/expressions/does-not-equals/bigint-and-number-extremes.js b/test/language/expressions/does-not-equals/bigint-and-number-extremes.js index 63eee52242..de715f278f 100644 --- a/test/language/expressions/does-not-equals/bigint-and-number-extremes.js +++ b/test/language/expressions/does-not-equals/bigint-and-number-extremes.js @@ -48,4 +48,4 @@ assert.sameValue( Number.MAX_VALUE != 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, true, 'The result of (Number.MAX_VALUE != 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/does-not-equals/bigint-and-number.js b/test/language/expressions/does-not-equals/bigint-and-number.js index a5ddbc9dd3..83fdb66290 100644 --- a/test/language/expressions/does-not-equals/bigint-and-number.js +++ b/test/language/expressions/does-not-equals/bigint-and-number.js @@ -38,4 +38,4 @@ assert.sameValue( Number.MIN_VALUE != -10n, true, 'The result of (Number.MIN_VALUE != -10n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/does-not-equals/bigint-and-object.js b/test/language/expressions/does-not-equals/bigint-and-object.js index a53cddf5ad..29b2310546 100644 --- a/test/language/expressions/does-not-equals/bigint-and-object.js +++ b/test/language/expressions/does-not-equals/bigint-and-object.js @@ -131,4 +131,4 @@ assert.sameValue({ toString: function() { return '900719925474099102'; } -} != 900719925474099101n, true, 'The result of (({toString: function() {return "900719925474099102";}}) != 900719925474099101n) is true'); \ No newline at end of file +} != 900719925474099101n, true, 'The result of (({toString: function() {return "900719925474099102";}}) != 900719925474099101n) is true'); diff --git a/test/language/expressions/does-not-equals/bigint-and-string.js b/test/language/expressions/does-not-equals/bigint-and-string.js index 56e1bec5ee..5b5bac2b40 100644 --- a/test/language/expressions/does-not-equals/bigint-and-string.js +++ b/test/language/expressions/does-not-equals/bigint-and-string.js @@ -63,4 +63,4 @@ assert.sameValue( '900719925474099101' != 900719925474099102n, true, 'The result of ("900719925474099101" != 900719925474099102n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/equals/bigint-and-bigint.js b/test/language/expressions/equals/bigint-and-bigint.js index e7c888abf5..8b54625d99 100644 --- a/test/language/expressions/equals/bigint-and-bigint.js +++ b/test/language/expressions/equals/bigint-and-bigint.js @@ -168,4 +168,4 @@ assert.sameValue( 0x100000000n == 0x10000000000000000n, false, 'The result of (0x100000000n == 0x10000000000000000n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/equals/bigint-and-boolean.js b/test/language/expressions/equals/bigint-and-boolean.js index 74cec0f374..86c72dcbab 100644 --- a/test/language/expressions/equals/bigint-and-boolean.js +++ b/test/language/expressions/equals/bigint-and-boolean.js @@ -28,4 +28,4 @@ assert.sameValue(true == 1n, true, 'The result of (true == 1n) is true'); assert.sameValue(2n == false, false, 'The result of (2n == false) is false'); assert.sameValue(false == 2n, false, 'The result of (false == 2n) is false'); assert.sameValue(2n == true, false, 'The result of (2n == true) is false'); -assert.sameValue(true == 2n, false, 'The result of (true == 2n) is false'); \ No newline at end of file +assert.sameValue(true == 2n, false, 'The result of (true == 2n) is false'); diff --git a/test/language/expressions/equals/bigint-and-incomparable-primitive.js b/test/language/expressions/equals/bigint-and-incomparable-primitive.js index 231232190f..c9ce4ea91c 100644 --- a/test/language/expressions/equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/equals/bigint-and-incomparable-primitive.js @@ -21,4 +21,4 @@ assert.sameValue(null == 1n, false, 'The result of (null == 1n) is false'); assert.sameValue(0n == Symbol('1'), false, 'The result of (0n == Symbol("1")) is false'); assert.sameValue(Symbol('1') == 0n, false, 'The result of (Symbol("1") == 0n) is false'); assert.sameValue(1n == Symbol('1'), false, 'The result of (1n == Symbol("1")) is false'); -assert.sameValue(Symbol('1') == 1n, false, 'The result of (Symbol("1") == 1n) is false'); \ No newline at end of file +assert.sameValue(Symbol('1') == 1n, false, 'The result of (Symbol("1") == 1n) is false'); diff --git a/test/language/expressions/equals/bigint-and-non-finite.js b/test/language/expressions/equals/bigint-and-non-finite.js index 51827da711..3d557907e5 100644 --- a/test/language/expressions/equals/bigint-and-non-finite.js +++ b/test/language/expressions/equals/bigint-and-non-finite.js @@ -26,4 +26,4 @@ assert.sameValue(NaN == 0n, false, 'The result of (NaN == 0n) is false'); assert.sameValue(1n == NaN, false, 'The result of (1n == NaN) is false'); assert.sameValue(NaN == 1n, false, 'The result of (NaN == 1n) is false'); assert.sameValue(-1n == NaN, false, 'The result of (-1n == NaN) is false'); -assert.sameValue(NaN == -1n, false, 'The result of (NaN == -1n) is false'); \ No newline at end of file +assert.sameValue(NaN == -1n, false, 'The result of (NaN == -1n) is false'); diff --git a/test/language/expressions/equals/bigint-and-number-extremes.js b/test/language/expressions/equals/bigint-and-number-extremes.js index 62265413dd..ee799196ae 100644 --- a/test/language/expressions/equals/bigint-and-number-extremes.js +++ b/test/language/expressions/equals/bigint-and-number-extremes.js @@ -58,4 +58,4 @@ assert.sameValue( Number.MAX_VALUE == 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, false, 'The result of (Number.MAX_VALUE == 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/equals/bigint-and-number.js b/test/language/expressions/equals/bigint-and-number.js index a771d2101a..10b4402808 100644 --- a/test/language/expressions/equals/bigint-and-number.js +++ b/test/language/expressions/equals/bigint-and-number.js @@ -48,4 +48,4 @@ assert.sameValue( Number.MIN_VALUE == -10n, false, 'The result of (Number.MIN_VALUE == -10n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/equals/bigint-and-object.js b/test/language/expressions/equals/bigint-and-object.js index 6f5dd056ca..ab52deea30 100644 --- a/test/language/expressions/equals/bigint-and-object.js +++ b/test/language/expressions/equals/bigint-and-object.js @@ -131,4 +131,4 @@ assert.sameValue({ toString: function() { return '900719925474099102'; } -} == 900719925474099101n, false, 'The result of (({toString: function() {return "900719925474099102";}}) == 900719925474099101n) is false'); \ No newline at end of file +} == 900719925474099101n, false, 'The result of (({toString: function() {return "900719925474099102";}}) == 900719925474099101n) is false'); diff --git a/test/language/expressions/equals/bigint-and-string.js b/test/language/expressions/equals/bigint-and-string.js index 92c3fa8990..d998ed0e35 100644 --- a/test/language/expressions/equals/bigint-and-string.js +++ b/test/language/expressions/equals/bigint-and-string.js @@ -63,4 +63,4 @@ assert.sameValue( '900719925474099101' == 900719925474099102n, false, 'The result of ("900719925474099101" == 900719925474099102n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/exponentiation/bigint-and-number.js b/test/language/expressions/exponentiation/bigint-and-number.js index 8a0416622a..769bb4c917 100644 --- a/test/language/expressions/exponentiation/bigint-and-number.js +++ b/test/language/expressions/exponentiation/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined ** 1n; -}, 'undefined ** 1n throws TypeError'); \ No newline at end of file +}, 'undefined ** 1n throws TypeError'); diff --git a/test/language/expressions/exponentiation/bigint-arithmetic.js b/test/language/expressions/exponentiation/bigint-arithmetic.js index cd7267ffe3..2ccbce791d 100644 --- a/test/language/expressions/exponentiation/bigint-arithmetic.js +++ b/test/language/expressions/exponentiation/bigint-arithmetic.js @@ -72,4 +72,4 @@ assert.sameValue(0x1n ** 0x123n, 0x1n, 'The result of (0x1n ** 0x123n) is 0x1n') assert.sameValue(0x1n ** 0xFFn, 0x1n, 'The result of (0x1n ** 0xFFn) is 0x1n'); assert.sameValue(0x1n ** 0x3n, 0x1n, 'The result of (0x1n ** 0x3n) is 0x1n'); assert.sameValue(0x1n ** 0x2n, 0x1n, 'The result of (0x1n ** 0x2n) is 0x1n'); -assert.sameValue(0x1n ** 0x1n, 0x1n, 'The result of (0x1n ** 0x1n) is 0x1n'); \ No newline at end of file +assert.sameValue(0x1n ** 0x1n, 0x1n, 'The result of (0x1n ** 0x1n) is 0x1n'); diff --git a/test/language/expressions/exponentiation/bigint-errors.js b/test/language/expressions/exponentiation/bigint-errors.js index 72a2cc65e3..e563bc6528 100644 --- a/test/language/expressions/exponentiation/bigint-errors.js +++ b/test/language/expressions/exponentiation/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n ** {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n ** {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/exponentiation/bigint-negative-exponent-throws.js b/test/language/expressions/exponentiation/bigint-negative-exponent-throws.js index d3dffb701d..8e3b32c539 100644 --- a/test/language/expressions/exponentiation/bigint-negative-exponent-throws.js +++ b/test/language/expressions/exponentiation/bigint-negative-exponent-throws.js @@ -29,4 +29,4 @@ assert.throws(RangeError, function() { assert.throws(RangeError, function() { 1n ** -100000000000000000n; -}, '1n ** -100000000000000000n throws RangeError'); \ No newline at end of file +}, '1n ** -100000000000000000n throws RangeError'); diff --git a/test/language/expressions/exponentiation/bigint-toprimitive.js b/test/language/expressions/exponentiation/bigint-toprimitive.js index b63120ac33..9cae71e6fc 100644 --- a/test/language/expressions/exponentiation/bigint-toprimitive.js +++ b/test/language/expressions/exponentiation/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n ** {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n ** {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/exponentiation/bigint-wrapped-values.js b/test/language/expressions/exponentiation/bigint-wrapped-values.js index fa0906102e..a5ba5070c3 100644 --- a/test/language/expressions/exponentiation/bigint-wrapped-values.js +++ b/test/language/expressions/exponentiation/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(1n ** { toString: function() { return 2n; } -}, 1n, 'The result of (1n ** {toString: function() {return 2n;}}) is 1n'); \ No newline at end of file +}, 1n, 'The result of (1n ** {toString: function() {return 2n;}}) is 1n'); diff --git a/test/language/expressions/exponentiation/bigint-zero-base-zero-exponent.js b/test/language/expressions/exponentiation/bigint-zero-base-zero-exponent.js index 55ffbf231a..425c46ff1e 100644 --- a/test/language/expressions/exponentiation/bigint-zero-base-zero-exponent.js +++ b/test/language/expressions/exponentiation/bigint-zero-base-zero-exponent.js @@ -17,4 +17,4 @@ info: | ... features: [BigInt] ---*/ -assert.sameValue(0n ** 0n, 1n, 'The result of (0n ** 0n) is 1n'); \ No newline at end of file +assert.sameValue(0n ** 0n, 1n, 'The result of (0n ** 0n) is 1n'); diff --git a/test/language/expressions/greater-than-or-equal/bigint-and-bigint.js b/test/language/expressions/greater-than-or-equal/bigint-and-bigint.js index 4c1c7670a2..cd57cd3444 100644 --- a/test/language/expressions/greater-than-or-equal/bigint-and-bigint.js +++ b/test/language/expressions/greater-than-or-equal/bigint-and-bigint.js @@ -161,4 +161,4 @@ assert.sameValue( 0x100000000n >= 0x10000000000000000n, false, 'The result of (0x100000000n >= 0x10000000000000000n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/greater-than-or-equal/bigint-and-incomparable-string.js b/test/language/expressions/greater-than-or-equal/bigint-and-incomparable-string.js index abd0bdf453..14fabdf2f7 100644 --- a/test/language/expressions/greater-than-or-equal/bigint-and-incomparable-string.js +++ b/test/language/expressions/greater-than-or-equal/bigint-and-incomparable-string.js @@ -24,4 +24,4 @@ assert.sameValue('1z' >= 0n, false, 'The result of ("1z" >= 0n) is false'); assert.sameValue('++1' >= 0n, false, 'The result of ("++1" >= 0n) is false'); assert.sameValue('--1' >= 0n, false, 'The result of ("--1" >= 0n) is false'); assert.sameValue('1e0' >= 0n, false, 'The result of ("1e0" >= 0n) is false'); -assert.sameValue('Infinity' >= 0n, false, 'The result of ("Infinity" >= 0n) is false'); \ No newline at end of file +assert.sameValue('Infinity' >= 0n, false, 'The result of ("Infinity" >= 0n) is false'); diff --git a/test/language/expressions/greater-than-or-equal/bigint-and-non-finite.js b/test/language/expressions/greater-than-or-equal/bigint-and-non-finite.js index 8c2b4d0bf7..5e91aeff61 100644 --- a/test/language/expressions/greater-than-or-equal/bigint-and-non-finite.js +++ b/test/language/expressions/greater-than-or-equal/bigint-and-non-finite.js @@ -26,4 +26,4 @@ assert.sameValue(-Infinity >= 1n, false, 'The result of (-Infinity >= 1n) is fal assert.sameValue(-1n >= -Infinity, true, 'The result of (-1n >= -Infinity) is true'); assert.sameValue(-Infinity >= -1n, false, 'The result of (-Infinity >= -1n) is false'); assert.sameValue(0n >= NaN, false, 'The result of (0n >= NaN) is false'); -assert.sameValue(NaN >= 0n, false, 'The result of (NaN >= 0n) is false'); \ No newline at end of file +assert.sameValue(NaN >= 0n, false, 'The result of (NaN >= 0n) is false'); diff --git a/test/language/expressions/greater-than-or-equal/bigint-and-number-extremes.js b/test/language/expressions/greater-than-or-equal/bigint-and-number-extremes.js index 7c2b2be5cf..b7aeb8104e 100644 --- a/test/language/expressions/greater-than-or-equal/bigint-and-number-extremes.js +++ b/test/language/expressions/greater-than-or-equal/bigint-and-number-extremes.js @@ -50,4 +50,4 @@ assert.sameValue( Number.MAX_VALUE >= 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, false, 'The result of (Number.MAX_VALUE >= 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/greater-than-or-equal/bigint-and-number.js b/test/language/expressions/greater-than-or-equal/bigint-and-number.js index 55120ea3fc..dfa69227bf 100644 --- a/test/language/expressions/greater-than-or-equal/bigint-and-number.js +++ b/test/language/expressions/greater-than-or-equal/bigint-and-number.js @@ -52,4 +52,4 @@ assert.sameValue( Number.MIN_VALUE >= -10n, true, 'The result of (Number.MIN_VALUE >= -10n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/greater-than-or-equal/bigint-and-string.js b/test/language/expressions/greater-than-or-equal/bigint-and-string.js index 15abbaaa6f..1f0743be4d 100644 --- a/test/language/expressions/greater-than-or-equal/bigint-and-string.js +++ b/test/language/expressions/greater-than-or-equal/bigint-and-string.js @@ -48,4 +48,4 @@ assert.sameValue( '-9007199254740992' >= -9007199254740993n, true, 'The result of ("-9007199254740992" >= -9007199254740993n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/greater-than/bigint-and-bigint.js b/test/language/expressions/greater-than/bigint-and-bigint.js index 71f57fd8e0..0f500f6280 100644 --- a/test/language/expressions/greater-than/bigint-and-bigint.js +++ b/test/language/expressions/greater-than/bigint-and-bigint.js @@ -161,4 +161,4 @@ assert.sameValue( 0x100000000n > 0x10000000000000000n, false, 'The result of (0x100000000n > 0x10000000000000000n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/greater-than/bigint-and-boolean.js b/test/language/expressions/greater-than/bigint-and-boolean.js index da43b44adc..1908eb9106 100644 --- a/test/language/expressions/greater-than/bigint-and-boolean.js +++ b/test/language/expressions/greater-than/bigint-and-boolean.js @@ -18,4 +18,4 @@ assert.sameValue(true > 31n, false, 'The result of (true > 31n) is false'); assert.sameValue(-3n > true, false, 'The result of (-3n > true) is false'); assert.sameValue(true > -3n, true, 'The result of (true > -3n) is true'); assert.sameValue(-3n > false, false, 'The result of (-3n > false) is false'); -assert.sameValue(false > -3n, true, 'The result of (false > -3n) is true'); \ No newline at end of file +assert.sameValue(false > -3n, true, 'The result of (false > -3n) is true'); diff --git a/test/language/expressions/greater-than/bigint-and-incomparable-string.js b/test/language/expressions/greater-than/bigint-and-incomparable-string.js index 68453be59a..c7554e3e8a 100644 --- a/test/language/expressions/greater-than/bigint-and-incomparable-string.js +++ b/test/language/expressions/greater-than/bigint-and-incomparable-string.js @@ -24,4 +24,4 @@ assert.sameValue('1z' > 0n, false, 'The result of ("1z" > 0n) is false'); assert.sameValue('++1' > 0n, false, 'The result of ("++1" > 0n) is false'); assert.sameValue('--1' > 0n, false, 'The result of ("--1" > 0n) is false'); assert.sameValue('1e0' > 0n, false, 'The result of ("1e0" > 0n) is false'); -assert.sameValue('Infinity' > 0n, false, 'The result of ("Infinity" > 0n) is false'); \ No newline at end of file +assert.sameValue('Infinity' > 0n, false, 'The result of ("Infinity" > 0n) is false'); diff --git a/test/language/expressions/greater-than/bigint-and-non-finite.js b/test/language/expressions/greater-than/bigint-and-non-finite.js index 3457ee2c2f..9b98998336 100644 --- a/test/language/expressions/greater-than/bigint-and-non-finite.js +++ b/test/language/expressions/greater-than/bigint-and-non-finite.js @@ -26,4 +26,4 @@ assert.sameValue(-Infinity > 1n, false, 'The result of (-Infinity > 1n) is false assert.sameValue(-1n > -Infinity, true, 'The result of (-1n > -Infinity) is true'); assert.sameValue(-Infinity > -1n, false, 'The result of (-Infinity > -1n) is false'); assert.sameValue(0n > NaN, false, 'The result of (0n > NaN) is false'); -assert.sameValue(NaN > 0n, false, 'The result of (NaN > 0n) is false'); \ No newline at end of file +assert.sameValue(NaN > 0n, false, 'The result of (NaN > 0n) is false'); diff --git a/test/language/expressions/greater-than/bigint-and-number-extremes.js b/test/language/expressions/greater-than/bigint-and-number-extremes.js index 6fde9fe0e4..658d3e567b 100644 --- a/test/language/expressions/greater-than/bigint-and-number-extremes.js +++ b/test/language/expressions/greater-than/bigint-and-number-extremes.js @@ -45,4 +45,4 @@ assert.sameValue( Number.MAX_VALUE > 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, false, 'The result of (Number.MAX_VALUE > 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/greater-than/bigint-and-number.js b/test/language/expressions/greater-than/bigint-and-number.js index 670edd1a43..008cd5303f 100644 --- a/test/language/expressions/greater-than/bigint-and-number.js +++ b/test/language/expressions/greater-than/bigint-and-number.js @@ -43,4 +43,4 @@ assert.sameValue( 'The result of (-10n > Number.MIN_VALUE) is false' ); -assert.sameValue(Number.MIN_VALUE > -10n, true, 'The result of (Number.MIN_VALUE > -10n) is true'); \ No newline at end of file +assert.sameValue(Number.MIN_VALUE > -10n, true, 'The result of (Number.MIN_VALUE > -10n) is true'); diff --git a/test/language/expressions/greater-than/bigint-and-symbol.js b/test/language/expressions/greater-than/bigint-and-symbol.js index 2cc873f664..e924adaf16 100644 --- a/test/language/expressions/greater-than/bigint-and-symbol.js +++ b/test/language/expressions/greater-than/bigint-and-symbol.js @@ -11,4 +11,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { Symbol('2') > 3n; -}, 'Symbol("2") > 3n throws TypeError'); \ No newline at end of file +}, 'Symbol("2") > 3n throws TypeError'); diff --git a/test/language/expressions/left-shift/bigint-and-number.js b/test/language/expressions/left-shift/bigint-and-number.js index 65e3afbbf6..58118ff7e2 100644 --- a/test/language/expressions/left-shift/bigint-and-number.js +++ b/test/language/expressions/left-shift/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined << 1n; -}, 'undefined << 1n throws TypeError'); \ No newline at end of file +}, 'undefined << 1n throws TypeError'); diff --git a/test/language/expressions/left-shift/bigint-errors.js b/test/language/expressions/left-shift/bigint-errors.js index 716d38ce32..810d03e3a5 100644 --- a/test/language/expressions/left-shift/bigint-errors.js +++ b/test/language/expressions/left-shift/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n << {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n << {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/left-shift/bigint-non-primitive.js b/test/language/expressions/left-shift/bigint-non-primitive.js index b2001b99ae..89c90a21d3 100644 --- a/test/language/expressions/left-shift/bigint-non-primitive.js +++ b/test/language/expressions/left-shift/bigint-non-primitive.js @@ -84,4 +84,4 @@ assert.sameValue({ valueOf: function() { return 1n; } -}, 0b1010n, 'The result of (({valueOf: function() {return 0b101n;}}) << {valueOf: function() {return 1n;}}) is 0b1010n'); \ No newline at end of file +}, 0b1010n, 'The result of (({valueOf: function() {return 0b101n;}}) << {valueOf: function() {return 1n;}}) is 0b1010n'); diff --git a/test/language/expressions/left-shift/bigint-toprimitive.js b/test/language/expressions/left-shift/bigint-toprimitive.js index 1788d8b62e..f1cf5a112c 100644 --- a/test/language/expressions/left-shift/bigint-toprimitive.js +++ b/test/language/expressions/left-shift/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n << {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n << {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/left-shift/bigint-wrapped-values.js b/test/language/expressions/left-shift/bigint-wrapped-values.js index 2a0b71c1aa..215ab45716 100644 --- a/test/language/expressions/left-shift/bigint-wrapped-values.js +++ b/test/language/expressions/left-shift/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(1n << { toString: function() { return 2n; } -}, 4n, 'The result of (1n << {toString: function() {return 2n;}}) is 4n'); \ No newline at end of file +}, 4n, 'The result of (1n << {toString: function() {return 2n;}}) is 4n'); diff --git a/test/language/expressions/less-than-or-equal/bigint-and-bigint.js b/test/language/expressions/less-than-or-equal/bigint-and-bigint.js index 204bd5139f..3aa3da869d 100644 --- a/test/language/expressions/less-than-or-equal/bigint-and-bigint.js +++ b/test/language/expressions/less-than-or-equal/bigint-and-bigint.js @@ -161,4 +161,4 @@ assert.sameValue( 0x100000000n <= 0x10000000000000000n, true, 'The result of (0x100000000n <= 0x10000000000000000n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/less-than-or-equal/bigint-and-incomparable-string.js b/test/language/expressions/less-than-or-equal/bigint-and-incomparable-string.js index ac09ce0eee..6563266204 100644 --- a/test/language/expressions/less-than-or-equal/bigint-and-incomparable-string.js +++ b/test/language/expressions/less-than-or-equal/bigint-and-incomparable-string.js @@ -24,4 +24,4 @@ assert.sameValue(0n <= '1z', false, 'The result of (0n <= "1z") is false'); assert.sameValue(0n <= '++1', false, 'The result of (0n <= "++1") is false'); assert.sameValue(0n <= '--1', false, 'The result of (0n <= "--1") is false'); assert.sameValue(0n <= '1e0', false, 'The result of (0n <= "1e0") is false'); -assert.sameValue(0n <= 'Infinity', false, 'The result of (0n <= "Infinity") is false'); \ No newline at end of file +assert.sameValue(0n <= 'Infinity', false, 'The result of (0n <= "Infinity") is false'); diff --git a/test/language/expressions/less-than-or-equal/bigint-and-non-finite.js b/test/language/expressions/less-than-or-equal/bigint-and-non-finite.js index b5e3eae795..2db0a92a1f 100644 --- a/test/language/expressions/less-than-or-equal/bigint-and-non-finite.js +++ b/test/language/expressions/less-than-or-equal/bigint-and-non-finite.js @@ -26,4 +26,4 @@ assert.sameValue(-Infinity <= 1n, true, 'The result of (-Infinity <= 1n) is true assert.sameValue(-1n <= -Infinity, false, 'The result of (-1n <= -Infinity) is false'); assert.sameValue(-Infinity <= -1n, true, 'The result of (-Infinity <= -1n) is true'); assert.sameValue(0n <= NaN, false, 'The result of (0n <= NaN) is false'); -assert.sameValue(NaN <= 0n, false, 'The result of (NaN <= 0n) is false'); \ No newline at end of file +assert.sameValue(NaN <= 0n, false, 'The result of (NaN <= 0n) is false'); diff --git a/test/language/expressions/less-than-or-equal/bigint-and-number-extremes.js b/test/language/expressions/less-than-or-equal/bigint-and-number-extremes.js index c900b8d277..f3117b976a 100644 --- a/test/language/expressions/less-than-or-equal/bigint-and-number-extremes.js +++ b/test/language/expressions/less-than-or-equal/bigint-and-number-extremes.js @@ -51,4 +51,4 @@ assert.sameValue( Number.MAX_VALUE <= 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, true, 'The result of (Number.MAX_VALUE <= 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/less-than-or-equal/bigint-and-number.js b/test/language/expressions/less-than-or-equal/bigint-and-number.js index 06fe0675a9..ebd98f4788 100644 --- a/test/language/expressions/less-than-or-equal/bigint-and-number.js +++ b/test/language/expressions/less-than-or-equal/bigint-and-number.js @@ -53,4 +53,4 @@ assert.sameValue( Number.MIN_VALUE <= -10n, false, 'The result of (Number.MIN_VALUE <= -10n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/less-than-or-equal/bigint-and-string.js b/test/language/expressions/less-than-or-equal/bigint-and-string.js index a604d17a75..fa7740bd01 100644 --- a/test/language/expressions/less-than-or-equal/bigint-and-string.js +++ b/test/language/expressions/less-than-or-equal/bigint-and-string.js @@ -48,4 +48,4 @@ assert.sameValue( '-9007199254740992' <= -9007199254740993n, false, 'The result of ("-9007199254740992" <= -9007199254740993n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/less-than/bigint-and-bigint.js b/test/language/expressions/less-than/bigint-and-bigint.js index 987496ffd0..19e5c08926 100644 --- a/test/language/expressions/less-than/bigint-and-bigint.js +++ b/test/language/expressions/less-than/bigint-and-bigint.js @@ -161,4 +161,4 @@ assert.sameValue( 0x100000000n < 0x10000000000000000n, true, 'The result of (0x100000000n < 0x10000000000000000n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/less-than/bigint-and-boolean.js b/test/language/expressions/less-than/bigint-and-boolean.js index 583bf24a08..8d6a3e1498 100644 --- a/test/language/expressions/less-than/bigint-and-boolean.js +++ b/test/language/expressions/less-than/bigint-and-boolean.js @@ -18,4 +18,4 @@ assert.sameValue(true < 31n, true, 'The result of (true < 31n) is true'); assert.sameValue(-3n < true, true, 'The result of (-3n < true) is true'); assert.sameValue(true < -3n, false, 'The result of (true < -3n) is false'); assert.sameValue(-3n < false, true, 'The result of (-3n < false) is true'); -assert.sameValue(false < -3n, false, 'The result of (false < -3n) is false'); \ No newline at end of file +assert.sameValue(false < -3n, false, 'The result of (false < -3n) is false'); diff --git a/test/language/expressions/less-than/bigint-and-incomparable-string.js b/test/language/expressions/less-than/bigint-and-incomparable-string.js index 878f412c46..02ee302ee2 100644 --- a/test/language/expressions/less-than/bigint-and-incomparable-string.js +++ b/test/language/expressions/less-than/bigint-and-incomparable-string.js @@ -24,4 +24,4 @@ assert.sameValue(0n < '1z', false, 'The result of (0n < "1z") is false'); assert.sameValue(0n < '++1', false, 'The result of (0n < "++1") is false'); assert.sameValue(0n < '--1', false, 'The result of (0n < "--1") is false'); assert.sameValue(0n < '1e0', false, 'The result of (0n < "1e0") is false'); -assert.sameValue(0n < 'Infinity', false, 'The result of (0n < "Infinity") is false'); \ No newline at end of file +assert.sameValue(0n < 'Infinity', false, 'The result of (0n < "Infinity") is false'); diff --git a/test/language/expressions/less-than/bigint-and-non-finite.js b/test/language/expressions/less-than/bigint-and-non-finite.js index 594c446ed7..e0f45ac595 100644 --- a/test/language/expressions/less-than/bigint-and-non-finite.js +++ b/test/language/expressions/less-than/bigint-and-non-finite.js @@ -26,4 +26,4 @@ assert.sameValue(-Infinity < 1n, true, 'The result of (-Infinity < 1n) is true') assert.sameValue(-1n < -Infinity, false, 'The result of (-1n < -Infinity) is false'); assert.sameValue(-Infinity < -1n, true, 'The result of (-Infinity < -1n) is true'); assert.sameValue(0n < NaN, false, 'The result of (0n < NaN) is false'); -assert.sameValue(NaN < 0n, false, 'The result of (NaN < 0n) is false'); \ No newline at end of file +assert.sameValue(NaN < 0n, false, 'The result of (NaN < 0n) is false'); diff --git a/test/language/expressions/less-than/bigint-and-number-extremes.js b/test/language/expressions/less-than/bigint-and-number-extremes.js index 8ae15abc89..91d4632576 100644 --- a/test/language/expressions/less-than/bigint-and-number-extremes.js +++ b/test/language/expressions/less-than/bigint-and-number-extremes.js @@ -45,4 +45,4 @@ assert.sameValue( Number.MAX_VALUE < 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, true, 'The result of (Number.MAX_VALUE < 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/less-than/bigint-and-number.js b/test/language/expressions/less-than/bigint-and-number.js index 4b95fa6f78..8a6e2e7069 100644 --- a/test/language/expressions/less-than/bigint-and-number.js +++ b/test/language/expressions/less-than/bigint-and-number.js @@ -42,4 +42,4 @@ assert.sameValue( Number.MIN_VALUE < -10n, false, 'The result of (Number.MIN_VALUE < -10n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/modulus/bigint-and-number.js b/test/language/expressions/modulus/bigint-and-number.js index 60a4d76d48..2cf19e855d 100644 --- a/test/language/expressions/modulus/bigint-and-number.js +++ b/test/language/expressions/modulus/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined % 1n; -}, 'undefined % 1n throws TypeError'); \ No newline at end of file +}, 'undefined % 1n throws TypeError'); diff --git a/test/language/expressions/modulus/bigint-arithmetic.js b/test/language/expressions/modulus/bigint-arithmetic.js index 9d7497b598..7fb47ed781 100644 --- a/test/language/expressions/modulus/bigint-arithmetic.js +++ b/test/language/expressions/modulus/bigint-arithmetic.js @@ -981,4 +981,4 @@ assert.sameValue( -0xFEDCBA9876543210n % -0xFEDCBA9876543210n, 0x0n, 'The result of (-0xFEDCBA9876543210n % -0xFEDCBA9876543210n) is 0x0n' -); \ No newline at end of file +); diff --git a/test/language/expressions/modulus/bigint-errors.js b/test/language/expressions/modulus/bigint-errors.js index 5b98602831..ee811f00f7 100644 --- a/test/language/expressions/modulus/bigint-errors.js +++ b/test/language/expressions/modulus/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n % {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n % {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/modulus/bigint-modulo-zero.js b/test/language/expressions/modulus/bigint-modulo-zero.js index 40000b95a3..c59489b571 100644 --- a/test/language/expressions/modulus/bigint-modulo-zero.js +++ b/test/language/expressions/modulus/bigint-modulo-zero.js @@ -32,4 +32,4 @@ assert.throws(RangeError, function() { assert.throws(RangeError, function() { 1000000000000000000n % 0n; -}, '1000000000000000000n % 0n throws RangeError'); \ No newline at end of file +}, '1000000000000000000n % 0n throws RangeError'); diff --git a/test/language/expressions/modulus/bigint-toprimitive.js b/test/language/expressions/modulus/bigint-toprimitive.js index 1bbc67e8ae..87bd56c82b 100644 --- a/test/language/expressions/modulus/bigint-toprimitive.js +++ b/test/language/expressions/modulus/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n % {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n % {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/modulus/bigint-wrapped-values.js b/test/language/expressions/modulus/bigint-wrapped-values.js index eeb1c38c46..170bf416e3 100644 --- a/test/language/expressions/modulus/bigint-wrapped-values.js +++ b/test/language/expressions/modulus/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(2n % { toString: function() { return 2n; } -}, 0n, 'The result of (2n % {toString: function() {return 2n;}}) is 0n'); \ No newline at end of file +}, 0n, 'The result of (2n % {toString: function() {return 2n;}}) is 0n'); diff --git a/test/language/expressions/multiplication/bigint-and-number.js b/test/language/expressions/multiplication/bigint-and-number.js index 4a9eb0c2ed..aa02dd2f04 100644 --- a/test/language/expressions/multiplication/bigint-and-number.js +++ b/test/language/expressions/multiplication/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined * 1n; -}, 'undefined * 1n throws TypeError'); \ No newline at end of file +}, 'undefined * 1n throws TypeError'); diff --git a/test/language/expressions/multiplication/bigint-arithmetic.js b/test/language/expressions/multiplication/bigint-arithmetic.js index 8305f16799..49c0c928c8 100644 --- a/test/language/expressions/multiplication/bigint-arithmetic.js +++ b/test/language/expressions/multiplication/bigint-arithmetic.js @@ -696,4 +696,4 @@ assert.sameValue( -0xFEDCBA9876543210n * -0xFEDCBA9876543210n, 0xFDBAC097C8DC5ACCDEEC6CD7A44A4100n, 'The result of (-0xFEDCBA9876543210n * -0xFEDCBA9876543210n) is 0xFDBAC097C8DC5ACCDEEC6CD7A44A4100n' -); \ No newline at end of file +); diff --git a/test/language/expressions/multiplication/bigint-errors.js b/test/language/expressions/multiplication/bigint-errors.js index 30a8553452..5610a0e52d 100644 --- a/test/language/expressions/multiplication/bigint-errors.js +++ b/test/language/expressions/multiplication/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n * {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n * {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/multiplication/bigint-toprimitive.js b/test/language/expressions/multiplication/bigint-toprimitive.js index 95127189c1..587c9f8d53 100644 --- a/test/language/expressions/multiplication/bigint-toprimitive.js +++ b/test/language/expressions/multiplication/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n * {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n * {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/multiplication/bigint-wrapped-values.js b/test/language/expressions/multiplication/bigint-wrapped-values.js index 5a5c5506ae..36d94ab1b2 100644 --- a/test/language/expressions/multiplication/bigint-wrapped-values.js +++ b/test/language/expressions/multiplication/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(2n * { toString: function() { return 2n; } -}, 4n, 'The result of (2n * {toString: function() {return 2n;}}) is 4n'); \ No newline at end of file +}, 4n, 'The result of (2n * {toString: function() {return 2n;}}) is 4n'); diff --git a/test/language/expressions/right-shift/bigint-and-number.js b/test/language/expressions/right-shift/bigint-and-number.js index 81ca9f2757..b2d5542470 100644 --- a/test/language/expressions/right-shift/bigint-and-number.js +++ b/test/language/expressions/right-shift/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined >> 1n; -}, 'undefined >> 1n throws TypeError'); \ No newline at end of file +}, 'undefined >> 1n throws TypeError'); diff --git a/test/language/expressions/right-shift/bigint-errors.js b/test/language/expressions/right-shift/bigint-errors.js index a5e77bc4e1..b15c1b5545 100644 --- a/test/language/expressions/right-shift/bigint-errors.js +++ b/test/language/expressions/right-shift/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n >> {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n >> {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/right-shift/bigint-non-primitive.js b/test/language/expressions/right-shift/bigint-non-primitive.js index 7abdca846e..ac08d0abd9 100644 --- a/test/language/expressions/right-shift/bigint-non-primitive.js +++ b/test/language/expressions/right-shift/bigint-non-primitive.js @@ -84,4 +84,4 @@ assert.sameValue({ valueOf: function() { return 1n; } -}, 0b10n, 'The result of (({valueOf: function() {return 0b101n;}}) >> {valueOf: function() {return 1n;}}) is 0b10n'); \ No newline at end of file +}, 0b10n, 'The result of (({valueOf: function() {return 0b101n;}}) >> {valueOf: function() {return 1n;}}) is 0b10n'); diff --git a/test/language/expressions/right-shift/bigint-toprimitive.js b/test/language/expressions/right-shift/bigint-toprimitive.js index a1dd9746f7..1dba0528b0 100644 --- a/test/language/expressions/right-shift/bigint-toprimitive.js +++ b/test/language/expressions/right-shift/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n >> {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n >> {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/right-shift/bigint-wrapped-values.js b/test/language/expressions/right-shift/bigint-wrapped-values.js index ad0d6c0d78..0772590221 100644 --- a/test/language/expressions/right-shift/bigint-wrapped-values.js +++ b/test/language/expressions/right-shift/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(4n >> { toString: function() { return 2n; } -}, 1n, 'The result of (4n >> {toString: function() {return 2n;}}) is 1n'); \ No newline at end of file +}, 1n, 'The result of (4n >> {toString: function() {return 2n;}}) is 1n'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-bigint.js b/test/language/expressions/strict-does-not-equals/bigint-and-bigint.js index ab8f7d57f3..09a58c1f27 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-bigint.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-bigint.js @@ -169,4 +169,4 @@ assert.sameValue( 0x100000000n !== 0x10000000000000000n, true, 'The result of (0x100000000n !== 0x10000000000000000n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-boolean.js b/test/language/expressions/strict-does-not-equals/bigint-and-boolean.js index 8259acb391..432ab34236 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-boolean.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-boolean.js @@ -23,4 +23,4 @@ assert.sameValue(true !== 1n, true, 'The result of (true !== 1n) is true'); assert.sameValue(2n !== false, true, 'The result of (2n !== false) is true'); assert.sameValue(false !== 2n, true, 'The result of (false !== 2n) is true'); assert.sameValue(2n !== true, true, 'The result of (2n !== true) is true'); -assert.sameValue(true !== 2n, true, 'The result of (true !== 2n) is true'); \ No newline at end of file +assert.sameValue(true !== 2n, true, 'The result of (true !== 2n) is true'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js b/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js index 26a3012d09..0ae2add29b 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js @@ -19,4 +19,4 @@ assert.sameValue(null !== 1n, true, 'The result of (null !== 1n) is true'); assert.sameValue(0n !== Symbol('1'), true, 'The result of (0n !== Symbol("1")) is true'); assert.sameValue(Symbol('1') !== 0n, true, 'The result of (Symbol("1") !== 0n) is true'); assert.sameValue(1n !== Symbol('1'), true, 'The result of (1n !== Symbol("1")) is true'); -assert.sameValue(Symbol('1') !== 1n, true, 'The result of (Symbol("1") !== 1n) is true'); \ No newline at end of file +assert.sameValue(Symbol('1') !== 1n, true, 'The result of (Symbol("1") !== 1n) is true'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-non-finite.js b/test/language/expressions/strict-does-not-equals/bigint-and-non-finite.js index 0bf8148eae..b375e5fd5d 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-non-finite.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-non-finite.js @@ -25,4 +25,4 @@ assert.sameValue(NaN !== 0n, true, 'The result of (NaN !== 0n) is true'); assert.sameValue(1n !== NaN, true, 'The result of (1n !== NaN) is true'); assert.sameValue(NaN !== 1n, true, 'The result of (NaN !== 1n) is true'); assert.sameValue(-1n !== NaN, true, 'The result of (-1n !== NaN) is true'); -assert.sameValue(NaN !== -1n, true, 'The result of (NaN !== -1n) is true'); \ No newline at end of file +assert.sameValue(NaN !== -1n, true, 'The result of (NaN !== -1n) is true'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-number-extremes.js b/test/language/expressions/strict-does-not-equals/bigint-and-number-extremes.js index 74f82676ec..e627102bde 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-number-extremes.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-number-extremes.js @@ -57,4 +57,4 @@ assert.sameValue( Number.MAX_VALUE !== 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, true, 'The result of (Number.MAX_VALUE !== 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-number.js b/test/language/expressions/strict-does-not-equals/bigint-and-number.js index 2614646055..9faea40d8c 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-number.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-number.js @@ -47,4 +47,4 @@ assert.sameValue( Number.MIN_VALUE !== -10n, true, 'The result of (Number.MIN_VALUE !== -10n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-object.js b/test/language/expressions/strict-does-not-equals/bigint-and-object.js index 73b992803d..46963350c4 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-object.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-object.js @@ -119,4 +119,4 @@ assert.sameValue({ toString: function() { return '900719925474099102'; } -} !== 900719925474099101n, true, 'The result of (({toString: function() {return "900719925474099102";}}) !== 900719925474099101n) is true'); \ No newline at end of file +} !== 900719925474099101n, true, 'The result of (({toString: function() {return "900719925474099102";}}) !== 900719925474099101n) is true'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-string.js b/test/language/expressions/strict-does-not-equals/bigint-and-string.js index 8b1e5e6fb3..a494285bd8 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-string.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-string.js @@ -63,4 +63,4 @@ assert.sameValue( '900719925474099101' !== 900719925474099102n, true, 'The result of ("900719925474099101" !== 900719925474099102n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/strict-equals/bigint-and-bigint.js b/test/language/expressions/strict-equals/bigint-and-bigint.js index 057f432b03..4f92b79071 100644 --- a/test/language/expressions/strict-equals/bigint-and-bigint.js +++ b/test/language/expressions/strict-equals/bigint-and-bigint.js @@ -169,4 +169,4 @@ assert.sameValue( 0x100000000n === 0x10000000000000000n, false, 'The result of (0x100000000n === 0x10000000000000000n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/strict-equals/bigint-and-boolean.js b/test/language/expressions/strict-equals/bigint-and-boolean.js index 461b5ac34b..0cc165de27 100644 --- a/test/language/expressions/strict-equals/bigint-and-boolean.js +++ b/test/language/expressions/strict-equals/bigint-and-boolean.js @@ -23,4 +23,4 @@ assert.sameValue(true === 1n, false, 'The result of (true === 1n) is false'); assert.sameValue(2n === false, false, 'The result of (2n === false) is false'); assert.sameValue(false === 2n, false, 'The result of (false === 2n) is false'); assert.sameValue(2n === true, false, 'The result of (2n === true) is false'); -assert.sameValue(true === 2n, false, 'The result of (true === 2n) is false'); \ No newline at end of file +assert.sameValue(true === 2n, false, 'The result of (true === 2n) is false'); diff --git a/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js b/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js index 6ed9bd1bdc..1b100f9aac 100644 --- a/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js @@ -19,4 +19,4 @@ assert.sameValue(null === 1n, false, 'The result of (null === 1n) is false'); assert.sameValue(0n === Symbol('1'), false, 'The result of (0n === Symbol("1")) is false'); assert.sameValue(Symbol('1') === 0n, false, 'The result of (Symbol("1") === 0n) is false'); assert.sameValue(1n === Symbol('1'), false, 'The result of (1n === Symbol("1")) is false'); -assert.sameValue(Symbol('1') === 1n, false, 'The result of (Symbol("1") === 1n) is false'); \ No newline at end of file +assert.sameValue(Symbol('1') === 1n, false, 'The result of (Symbol("1") === 1n) is false'); diff --git a/test/language/expressions/strict-equals/bigint-and-non-finite.js b/test/language/expressions/strict-equals/bigint-and-non-finite.js index 2ffa93ad46..baf28746ff 100644 --- a/test/language/expressions/strict-equals/bigint-and-non-finite.js +++ b/test/language/expressions/strict-equals/bigint-and-non-finite.js @@ -25,4 +25,4 @@ assert.sameValue(NaN === 0n, false, 'The result of (NaN === 0n) is false'); assert.sameValue(1n === NaN, false, 'The result of (1n === NaN) is false'); assert.sameValue(NaN === 1n, false, 'The result of (NaN === 1n) is false'); assert.sameValue(-1n === NaN, false, 'The result of (-1n === NaN) is false'); -assert.sameValue(NaN === -1n, false, 'The result of (NaN === -1n) is false'); \ No newline at end of file +assert.sameValue(NaN === -1n, false, 'The result of (NaN === -1n) is false'); diff --git a/test/language/expressions/strict-equals/bigint-and-number-extremes.js b/test/language/expressions/strict-equals/bigint-and-number-extremes.js index c6c1f5eee0..6559507f00 100644 --- a/test/language/expressions/strict-equals/bigint-and-number-extremes.js +++ b/test/language/expressions/strict-equals/bigint-and-number-extremes.js @@ -66,4 +66,4 @@ assert.sameValue( Number.MAX_VALUE === 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n, false, 'The result of (Number.MAX_VALUE === 0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/strict-equals/bigint-and-number.js b/test/language/expressions/strict-equals/bigint-and-number.js index 09d0c3a14b..8ff52a00ef 100644 --- a/test/language/expressions/strict-equals/bigint-and-number.js +++ b/test/language/expressions/strict-equals/bigint-and-number.js @@ -57,4 +57,4 @@ assert.sameValue( Number.MIN_VALUE === -10n, false, 'The result of (Number.MIN_VALUE === -10n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/strict-equals/bigint-and-object.js b/test/language/expressions/strict-equals/bigint-and-object.js index 638540d153..43a6629db4 100644 --- a/test/language/expressions/strict-equals/bigint-and-object.js +++ b/test/language/expressions/strict-equals/bigint-and-object.js @@ -119,4 +119,4 @@ assert.sameValue({ toString: function() { return '900719925474099102'; } -} === 900719925474099101n, false, 'The result of (({toString: function() {return "900719925474099102";}}) === 900719925474099101n) is false'); \ No newline at end of file +} === 900719925474099101n, false, 'The result of (({toString: function() {return "900719925474099102";}}) === 900719925474099101n) is false'); diff --git a/test/language/expressions/strict-equals/bigint-and-string.js b/test/language/expressions/strict-equals/bigint-and-string.js index f810c00e8f..9d2027c4a5 100644 --- a/test/language/expressions/strict-equals/bigint-and-string.js +++ b/test/language/expressions/strict-equals/bigint-and-string.js @@ -63,4 +63,4 @@ assert.sameValue( '900719925474099101' === 900719925474099102n, false, 'The result of ("900719925474099101" === 900719925474099102n) is false' -); \ No newline at end of file +); diff --git a/test/language/expressions/subtraction/bigint-and-number.js b/test/language/expressions/subtraction/bigint-and-number.js index 1e4f3a16fb..43e03626ed 100644 --- a/test/language/expressions/subtraction/bigint-and-number.js +++ b/test/language/expressions/subtraction/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined - 1n; -}, 'undefined - 1n throws TypeError'); \ No newline at end of file +}, 'undefined - 1n throws TypeError'); diff --git a/test/language/expressions/subtraction/bigint-arithmetic.js b/test/language/expressions/subtraction/bigint-arithmetic.js index 48b4b5c3b9..e319996b8c 100644 --- a/test/language/expressions/subtraction/bigint-arithmetic.js +++ b/test/language/expressions/subtraction/bigint-arithmetic.js @@ -1341,4 +1341,4 @@ assert.sameValue( -0xFEDCBA9876543210n - -0xFEDCBA9876543210n, 0x0n, 'The result of (-0xFEDCBA9876543210n - -0xFEDCBA9876543210n) is 0x0n' -); \ No newline at end of file +); diff --git a/test/language/expressions/subtraction/bigint-errors.js b/test/language/expressions/subtraction/bigint-errors.js index 5d65a7f6c0..6f878e1bb2 100644 --- a/test/language/expressions/subtraction/bigint-errors.js +++ b/test/language/expressions/subtraction/bigint-errors.js @@ -67,4 +67,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n - {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n - {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/subtraction/bigint-toprimitive.js b/test/language/expressions/subtraction/bigint-toprimitive.js index 64247e9c39..a572b20289 100644 --- a/test/language/expressions/subtraction/bigint-toprimitive.js +++ b/test/language/expressions/subtraction/bigint-toprimitive.js @@ -369,4 +369,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n - {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n - {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/subtraction/bigint-wrapped-values.js b/test/language/expressions/subtraction/bigint-wrapped-values.js index fde9ae639e..59dc465da9 100644 --- a/test/language/expressions/subtraction/bigint-wrapped-values.js +++ b/test/language/expressions/subtraction/bigint-wrapped-values.js @@ -42,4 +42,4 @@ assert.sameValue(3n - { toString: function() { return 2n; } -}, 1n, 'The result of (3n - {toString: function() {return 2n;}}) is 1n'); \ No newline at end of file +}, 1n, 'The result of (3n - {toString: function() {return 2n;}}) is 1n'); diff --git a/test/language/expressions/unary-minus/bigint-non-primitive.js b/test/language/expressions/unary-minus/bigint-non-primitive.js index 2d35b64203..05b4d6c936 100644 --- a/test/language/expressions/unary-minus/bigint-non-primitive.js +++ b/test/language/expressions/unary-minus/bigint-non-primitive.js @@ -49,4 +49,4 @@ assert.sameValue(-{ toString: function() { return 1n; } -}, -1n, 'The value of -{toString: function() {return 1n;}} is -1n'); \ No newline at end of file +}, -1n, 'The value of -{toString: function() {return 1n;}} is -1n'); diff --git a/test/language/expressions/unary-plus/bigint-throws.js b/test/language/expressions/unary-plus/bigint-throws.js index 72f0442318..7eeb0eeaab 100644 --- a/test/language/expressions/unary-plus/bigint-throws.js +++ b/test/language/expressions/unary-plus/bigint-throws.js @@ -28,4 +28,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { +1000000000000000n; -}, '+1000000000000000n throws TypeError'); \ No newline at end of file +}, '+1000000000000000n throws TypeError'); diff --git a/test/language/expressions/unsigned-right-shift/bigint-and-number.js b/test/language/expressions/unsigned-right-shift/bigint-and-number.js index 18ed19422e..9751553cc0 100644 --- a/test/language/expressions/unsigned-right-shift/bigint-and-number.js +++ b/test/language/expressions/unsigned-right-shift/bigint-and-number.js @@ -87,4 +87,4 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { undefined >>> 1n; -}, 'undefined >>> 1n throws TypeError'); \ No newline at end of file +}, 'undefined >>> 1n throws TypeError'); diff --git a/test/language/expressions/unsigned-right-shift/bigint-errors.js b/test/language/expressions/unsigned-right-shift/bigint-errors.js index 6aa73c0353..96743b3a43 100644 --- a/test/language/expressions/unsigned-right-shift/bigint-errors.js +++ b/test/language/expressions/unsigned-right-shift/bigint-errors.js @@ -68,4 +68,4 @@ assert.throws(TypeError, function() { return Symbol('1'); } }; -}, '0n >>> {toString: function() {return Symbol("1");}} throws TypeError'); \ No newline at end of file +}, '0n >>> {toString: function() {return Symbol("1");}} throws TypeError'); diff --git a/test/language/expressions/unsigned-right-shift/bigint-non-primitive.js b/test/language/expressions/unsigned-right-shift/bigint-non-primitive.js index aa955c7e1b..165667aac7 100644 --- a/test/language/expressions/unsigned-right-shift/bigint-non-primitive.js +++ b/test/language/expressions/unsigned-right-shift/bigint-non-primitive.js @@ -100,4 +100,4 @@ assert.throws(TypeError, function() { return 1n; } }; -}, '({valueOf: function() {return 0b101n;}}) >>> {valueOf: function() {return 1n;}} throws TypeError'); \ No newline at end of file +}, '({valueOf: function() {return 0b101n;}}) >>> {valueOf: function() {return 1n;}} throws TypeError'); diff --git a/test/language/expressions/unsigned-right-shift/bigint-toprimitive.js b/test/language/expressions/unsigned-right-shift/bigint-toprimitive.js index 6f6aca011e..d8180a7e2e 100644 --- a/test/language/expressions/unsigned-right-shift/bigint-toprimitive.js +++ b/test/language/expressions/unsigned-right-shift/bigint-toprimitive.js @@ -410,4 +410,4 @@ assert.throws(TypeError, function() { return {}; } }; -}, '0n >>> {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); \ No newline at end of file +}, '0n >>> {valueOf: function() {return {};}, toString: function() {return {};}} throws TypeError'); diff --git a/test/language/expressions/unsigned-right-shift/bigint-wrapped-values.js b/test/language/expressions/unsigned-right-shift/bigint-wrapped-values.js index 46fe1027b4..f8f3094afc 100644 --- a/test/language/expressions/unsigned-right-shift/bigint-wrapped-values.js +++ b/test/language/expressions/unsigned-right-shift/bigint-wrapped-values.js @@ -60,4 +60,4 @@ assert.throws(TypeError, function() { return 2n; } }; -}, '0n >>> {toString: function() {return 2n;}} throws TypeError'); \ No newline at end of file +}, '0n >>> {toString: function() {return 2n;}} throws TypeError'); diff --git a/test/language/statements/class/definition/constructable-but-no-prototype.js b/test/language/statements/class/definition/constructable-but-no-prototype.js index a26c914f4b..c643296e20 100644 --- a/test/language/statements/class/definition/constructable-but-no-prototype.js +++ b/test/language/statements/class/definition/constructable-but-no-prototype.js @@ -8,4 +8,4 @@ description: > var Base = function() {}.bind(); assert.throws(TypeError, function() { class C extends Base {} -}); \ No newline at end of file +}); diff --git a/test/language/statements/class/definition/constructor-strict-by-default.js b/test/language/statements/class/definition/constructor-strict-by-default.js index 95f9e6f6e0..278ca405d7 100644 --- a/test/language/statements/class/definition/constructor-strict-by-default.js +++ b/test/language/statements/class/definition/constructor-strict-by-default.js @@ -12,4 +12,4 @@ class C { }); } } -new C(); \ No newline at end of file +new C(); diff --git a/test/language/statements/class/definition/getters-restricted-ids.js b/test/language/statements/class/definition/getters-restricted-ids.js index 0fe94cb7d9..0c4806fd14 100644 --- a/test/language/statements/class/definition/getters-restricted-ids.js +++ b/test/language/statements/class/definition/getters-restricted-ids.js @@ -23,4 +23,4 @@ class C { assert.sameValue(new C().eval, 1, "The value of `new C().eval` is `1`"); assert.sameValue(new C().arguments, 2, "The value of `new C().arguments` is `2`"); assert.sameValue(C.eval, 3, "The value of `C.eval` is `3`"); -assert.sameValue(C.arguments, 4, "The value of `C.arguments` is `4`"); \ No newline at end of file +assert.sameValue(C.arguments, 4, "The value of `C.arguments` is `4`"); diff --git a/test/language/statements/class/definition/implicit-constructor.js b/test/language/statements/class/definition/implicit-constructor.js index 51ea738fd7..f5e55cbda1 100644 --- a/test/language/statements/class/definition/implicit-constructor.js +++ b/test/language/statements/class/definition/implicit-constructor.js @@ -11,4 +11,4 @@ assert.sameValue( Object.getPrototypeOf(c), C.prototype, "`Object.getPrototypeOf(c)` returns `C.prototype`" -); \ No newline at end of file +); diff --git a/test/language/statements/class/definition/invalid-extends.js b/test/language/statements/class/definition/invalid-extends.js index 2b17395b9f..b1ac5698b2 100644 --- a/test/language/statements/class/definition/invalid-extends.js +++ b/test/language/statements/class/definition/invalid-extends.js @@ -18,4 +18,4 @@ assert.throws(TypeError, function() { Math.abs.prototype = 42; class C extends Math.abs {} }); -delete Math.abs.prototype; \ No newline at end of file +delete Math.abs.prototype; diff --git a/test/language/statements/class/definition/methods-named-eval-arguments.js b/test/language/statements/class/definition/methods-named-eval-arguments.js index 5dffc337d4..81920eceb7 100644 --- a/test/language/statements/class/definition/methods-named-eval-arguments.js +++ b/test/language/statements/class/definition/methods-named-eval-arguments.js @@ -23,4 +23,4 @@ class C { assert.sameValue(new C().eval(), 1, "`new C().eval()` returns `1`"); assert.sameValue(new C().arguments(), 2, "`new C().arguments()` returns `2`"); assert.sameValue(C.eval(), 3, "`C.eval()` returns `3`"); -assert.sameValue(C.arguments(), 4, "`C.arguments()` returns `4`"); \ No newline at end of file +assert.sameValue(C.arguments(), 4, "`C.arguments()` returns `4`"); diff --git a/test/language/statements/class/definition/prototype-getter.js b/test/language/statements/class/definition/prototype-getter.js index 3b9834dcce..cc79a917a4 100644 --- a/test/language/statements/class/definition/prototype-getter.js +++ b/test/language/statements/class/definition/prototype-getter.js @@ -28,4 +28,4 @@ Object.defineProperty(Base, 'prototype', { assert.throws(TypeError, function() { class C extends Base {} }); -assert.sameValue(calls, 1, "The value of `calls` is `1`"); \ No newline at end of file +assert.sameValue(calls, 1, "The value of `calls` is `1`"); diff --git a/test/language/statements/class/definition/prototype-property.js b/test/language/statements/class/definition/prototype-property.js index 2d6054d5b3..acbaad6d37 100644 --- a/test/language/statements/class/definition/prototype-property.js +++ b/test/language/statements/class/definition/prototype-property.js @@ -9,4 +9,4 @@ class C {} var descr = Object.getOwnPropertyDescriptor(C, 'prototype'); assert.sameValue(descr.configurable, false, "The value of `descr.configurable` is `false`"); assert.sameValue(descr.enumerable, false, "The value of `descr.enumerable` is `false`"); -assert.sameValue(descr.writable, false, "The value of `descr.writable` is `false`"); \ No newline at end of file +assert.sameValue(descr.writable, false, "The value of `descr.writable` is `false`"); diff --git a/test/language/statements/class/definition/setters-restricted-ids.js b/test/language/statements/class/definition/setters-restricted-ids.js index 5f15ea4016..3dfd3334d7 100644 --- a/test/language/statements/class/definition/setters-restricted-ids.js +++ b/test/language/statements/class/definition/setters-restricted-ids.js @@ -28,4 +28,4 @@ assert.sameValue(x, 2, "The value of `x` is `2`"); C.eval = 3; assert.sameValue(x, 3, "The value of `x` is `3`"); C.arguments = 4; -assert.sameValue(x, 4, "The value of `x` is `4`"); \ No newline at end of file +assert.sameValue(x, 4, "The value of `x` is `4`"); diff --git a/test/language/statements/class/definition/side-effects-in-extends.js b/test/language/statements/class/definition/side-effects-in-extends.js index 12c4e3e17d..3dd7e28a52 100644 --- a/test/language/statements/class/definition/side-effects-in-extends.js +++ b/test/language/statements/class/definition/side-effects-in-extends.js @@ -15,4 +15,4 @@ assert.sameValue( C.prototype, Object.getPrototypeOf(D.prototype), "The value of `C.prototype` is `Object.getPrototypeOf(D.prototype)`" -); \ No newline at end of file +); diff --git a/test/language/statements/class/definition/side-effects-in-property-define.js b/test/language/statements/class/definition/side-effects-in-property-define.js index c83858d993..272ad0a51b 100644 --- a/test/language/statements/class/definition/side-effects-in-property-define.js +++ b/test/language/statements/class/definition/side-effects-in-property-define.js @@ -17,4 +17,4 @@ class C extends B { m() { return 1; } } -assert.sameValue(new C().m(), 1, "`new C().m()` returns `1`"); \ No newline at end of file +assert.sameValue(new C().m(), 1, "`new C().m()` returns `1`"); diff --git a/test/language/statements/class/definition/this-access-restriction-2.js b/test/language/statements/class/definition/this-access-restriction-2.js index e95a745214..2e43de3bf1 100644 --- a/test/language/statements/class/definition/this-access-restriction-2.js +++ b/test/language/statements/class/definition/this-access-restriction-2.js @@ -85,4 +85,4 @@ class BadSubclass extends Base { constructor() {} } -assert.throws(ReferenceError, function() { new BadSubclass(); }); \ No newline at end of file +assert.throws(ReferenceError, function() { new BadSubclass(); }); diff --git a/test/language/statements/class/definition/this-access-restriction.js b/test/language/statements/class/definition/this-access-restriction.js index 7898c9fec9..046f1f0491 100644 --- a/test/language/statements/class/definition/this-access-restriction.js +++ b/test/language/statements/class/definition/this-access-restriction.js @@ -95,4 +95,4 @@ class C3 extends Object { super(); } }; -new C3(); \ No newline at end of file +new C3(); diff --git a/test/language/statements/class/definition/this-check-ordering.js b/test/language/statements/class/definition/this-check-ordering.js index ec21be602e..c62857b9e7 100644 --- a/test/language/statements/class/definition/this-check-ordering.js +++ b/test/language/statements/class/definition/this-check-ordering.js @@ -67,4 +67,4 @@ class Subclass1 extends Base { } } -new Subclass1(); \ No newline at end of file +new Subclass1(); diff --git a/test/language/statements/class/name-binding/basic.js b/test/language/statements/class/name-binding/basic.js index 26e2f23492..80e431e60a 100644 --- a/test/language/statements/class/name-binding/basic.js +++ b/test/language/statements/class/name-binding/basic.js @@ -33,4 +33,4 @@ assert.sameValue(C, C2, "The value of `C` is `C2`"); C2 = undefined; new C().x = 1; -assert.sameValue(C, C2, "The value of `C` is `C2`"); \ No newline at end of file +assert.sameValue(C, C2, "The value of `C` is `C2`"); diff --git a/test/language/statements/class/subclass/binding.js b/test/language/statements/class/subclass/binding.js index d07a8365e3..20d03efd54 100644 --- a/test/language/statements/class/subclass/binding.js +++ b/test/language/statements/class/subclass/binding.js @@ -49,4 +49,4 @@ assert.sameValue( Object.getPrototypeOf(s), Subclass.prototype, "`Object.getPrototypeOf(s)` returns `Subclass.prototype`" -); \ No newline at end of file +); diff --git a/test/language/statements/class/subclass/builtin-objects/RegExp/lastIndex.js b/test/language/statements/class/subclass/builtin-objects/RegExp/lastIndex.js index aed3a1b33a..2852f80635 100644 --- a/test/language/statements/class/subclass/builtin-objects/RegExp/lastIndex.js +++ b/test/language/statements/class/subclass/builtin-objects/RegExp/lastIndex.js @@ -23,4 +23,4 @@ assert.sameValue(re.lastIndex, 0); verifyWritable(re, 'lastIndex'); verifyNotEnumerable(re, 'lastIndex'); -verifyNotConfigurable(re, 'lastIndex'); \ No newline at end of file +verifyNotConfigurable(re, 'lastIndex'); diff --git a/test/language/statements/class/subclass/builtin-objects/String/length.js b/test/language/statements/class/subclass/builtin-objects/String/length.js index 1d8596f558..fd373586a5 100644 --- a/test/language/statements/class/subclass/builtin-objects/String/length.js +++ b/test/language/statements/class/subclass/builtin-objects/String/length.js @@ -27,4 +27,4 @@ assert.sameValue(s2.length, 7); verifyNotWritable(s2, 'length'); verifyNotEnumerable(s2, 'length'); -verifyNotConfigurable(s2, 'length'); \ No newline at end of file +verifyNotConfigurable(s2, 'length'); diff --git a/test/language/statements/class/subclass/builtins.js b/test/language/statements/class/subclass/builtins.js index 9b2438f9b0..608a799b95 100644 --- a/test/language/statements/class/subclass/builtins.js +++ b/test/language/statements/class/subclass/builtins.js @@ -27,4 +27,4 @@ assert.sameValue( Object.prototype.toString.call(eua), "[object Uint8Array]", "`Object.prototype.toString.call(eua)` returns `\"[object Uint8Array]\"`" -); \ No newline at end of file +); diff --git a/test/language/statements/for-in/identifier-let-allowed-as-lefthandside-expression-not-strict.js b/test/language/statements/for-in/identifier-let-allowed-as-lefthandside-expression-not-strict.js index 8c0d3b5cf4..7649c35284 100644 --- a/test/language/statements/for-in/identifier-let-allowed-as-lefthandside-expression-not-strict.js +++ b/test/language/statements/for-in/identifier-let-allowed-as-lefthandside-expression-not-strict.js @@ -9,4 +9,4 @@ info: | Expression[+In, ?Yield, ? Await]) Statement[?Yield, ?Await, ?Return] flags: [noStrict] ---*/ -for (let in {}) { } \ No newline at end of file +for (let in {}) { } diff --git a/tools/lint/lib/checks/posix.py b/tools/lint/lib/checks/posix.py new file mode 100644 index 0000000000..e2317e3e87 --- /dev/null +++ b/tools/lint/lib/checks/posix.py @@ -0,0 +1,10 @@ +from ..check import Check +import re + +class CheckPosix(Check): + '''Ensure tests are valid POSIX files''' + ID = 'POSIX' + + def run(self, name, meta, source): + if not source.endswith('\n'): + return 'File must end with a newline' diff --git a/tools/lint/lint.py b/tools/lint/lint.py index c43e542d04..f2bb386000 100755 --- a/tools/lint/lint.py +++ b/tools/lint/lint.py @@ -43,6 +43,7 @@ from lib.checks.negative import CheckNegative from lib.checks.filename import CheckFileName from lib.checks.nopadding import CheckNoPadding from lib.checks.flags import CheckFlags +from lib.checks.posix import CheckPosix from lib.eprint import eprint import lib.frontmatter import lib.exceptions @@ -67,6 +68,7 @@ checks = [ CheckNegative(), CheckNoPadding(), CheckFlags(), + CheckPosix(), ] def lint(file_names): diff --git a/tools/lint/test/run.py b/tools/lint/test/run.py index 6e6d98b902..6b12d91547 100755 --- a/tools/lint/test/run.py +++ b/tools/lint/test/run.py @@ -39,7 +39,7 @@ class TestLinter(unittest.TestCase): def test_exceptions_single(self): test_content = ('// Copyright (C) 2017 Mike Pennisi. All rights reserved.\n' + - '// This code is governed by the BSD license found in the LICENSE file.') + '// This code is governed by the BSD license found in the LICENSE file.\n') test_file = self.fixture('input.js', test_content) exceptions_content = test_file + ' FRONTMATTER' exceptions_file = self.fixture('lint.exceptions', exceptions_content) @@ -54,7 +54,7 @@ class TestLinter(unittest.TestCase): def test_exceptions_comment(self): test_content = ('// Copyright (C) 2017 Mike Pennisi. All rights reserved.\n' + - '// This code is governed by the BSD license found in the LICENSE file.') + '// This code is governed by the BSD license found in the LICENSE file.\n') test_file = self.fixture('input.js', test_content) exceptions_content = ('# One comment\n' + '# Another comment\n' +