From 89ec038cf2f12365aaf6f3862a361940c08ae19f Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Thu, 20 Sep 2018 20:33:01 -0700 Subject: [PATCH] remove some trailing commas in calls --- .../Atomics/notify/undefined-index-defaults-to-zero.js | 2 +- .../String/prototype/trimEnd/this-value-line-terminator.js | 2 +- .../this-value-object-cannot-convert-to-primitive-err.js | 2 +- .../trimEnd/this-value-object-toprimitive-meth-priority.js | 2 +- .../trimEnd/this-value-object-tostring-meth-priority.js | 2 +- .../trimEnd/this-value-object-valueof-meth-priority.js | 2 +- .../String/prototype/trimEnd/this-value-whitespace.js | 2 +- .../prototype/trimStart/this-value-line-terminator.js | 2 +- .../this-value-object-cannot-convert-to-primitive-err.js | 2 +- .../this-value-object-toprimitive-meth-priority.js | 2 +- .../trimStart/this-value-object-tostring-meth-priority.js | 2 +- .../trimStart/this-value-object-valueof-meth-priority.js | 2 +- .../String/prototype/trimStart/this-value-whitespace.js | 2 +- test/intl402/Locale/constructor-options-casefirst-valid.js | 6 +++--- test/intl402/Locale/constructor-options-numeric-valid.js | 6 +++--- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/test/built-ins/Atomics/notify/undefined-index-defaults-to-zero.js b/test/built-ins/Atomics/notify/undefined-index-defaults-to-zero.js index 3dfe88b2e9..59119a50df 100644 --- a/test/built-ins/Atomics/notify/undefined-index-defaults-to-zero.js +++ b/test/built-ins/Atomics/notify/undefined-index-defaults-to-zero.js @@ -67,7 +67,7 @@ assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns " // Notify again at index 0, default => 0. var woken = 0; -while ((woken = Atomics.notify(i32a, /*, default values used */)) === 0) ; +while ((woken = Atomics.notify(i32a /*, default values used */)) === 0) ; assert.sameValue(woken, 1, 'Atomics.notify(i32a /*, default values used */) returns 1'); assert.sameValue($262.agent.getReport(), 'ok', '$262.agent.getReport() returns "ok"'); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-line-terminator.js b/test/built-ins/String/prototype/trimEnd/this-value-line-terminator.js index 714aefe52b..96a7300b46 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-line-terminator.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-line-terminator.js @@ -26,5 +26,5 @@ var expected = lt + 'a' + lt + 'b'; assert.sameValue( trimEnd.call(str), - expected, + expected ); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js index 77170a1c7d..1a9d5418ac 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js @@ -55,5 +55,5 @@ assert.throws( TypeError, function() { String.prototype.trimEnd.call(thisVal); - }, + } ); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js index 127dc03f99..b9b188c189 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js @@ -63,7 +63,7 @@ assert.sameValue( assert.sameValue( result, '42', - 'thisVal[Symbol.toPrimitive] expected to have been called.', + 'thisVal[Symbol.toPrimitive] expected to have been called.' ); // Test that thisVal.toString and thisVal.valueOf have not been accessedo diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js index 3c65454e04..d92140b81f 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js @@ -77,7 +77,7 @@ assert.sameValue( assert.sameValue( result, '42', - 'thisVal.toString expected to have been called.', + 'thisVal.toString expected to have been called.' ); // Test that thisVal[toPrimitive] has been accessed. diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js index b2a16798cc..b0456f53c5 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js @@ -76,7 +76,7 @@ assert.sameValue( assert.sameValue( result, '42', - 'thisVal.valueOf expected to have been called.', + 'thisVal.valueOf expected to have been called.' ); // Test that thisVal[toPrimitive] and thisVal.toString has been accessed. diff --git a/test/built-ins/String/prototype/trimEnd/this-value-whitespace.js b/test/built-ins/String/prototype/trimEnd/this-value-whitespace.js index 427273e4b8..bf5cae9187 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-whitespace.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-whitespace.js @@ -29,5 +29,5 @@ var expected = wspc + 'a' + wspc + 'b'; assert.sameValue( trimEnd.call(str), - expected, + expected ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-line-terminator.js b/test/built-ins/String/prototype/trimStart/this-value-line-terminator.js index 54aab4a98f..ff828869fd 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-line-terminator.js +++ b/test/built-ins/String/prototype/trimStart/this-value-line-terminator.js @@ -26,5 +26,5 @@ var expected = 'a' + lt + 'b' + lt; assert.sameValue( trimStart.call(str), - expected, + expected ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js index e74d0569b5..36db2ae671 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js @@ -55,5 +55,5 @@ assert.throws( TypeError, function() { String.prototype.trimStart.call(thisVal); - }, + } ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js index f16a325f8d..4fef8750f6 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js @@ -63,7 +63,7 @@ assert.sameValue( assert.sameValue( result, '42', - 'thisVal[Symbol.toPrimitive] expected to have been called.', + 'thisVal[Symbol.toPrimitive] expected to have been called.' ); // Test that thisVal.toString and thisVal.valueOf have not been accessedo diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js index f4fb1f2012..33787841fd 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js @@ -77,7 +77,7 @@ assert.sameValue( assert.sameValue( result, '42', - 'thisVal.toString expected to have been called.', + 'thisVal.toString expected to have been called.' ); // Test that thisVal[toPrimitive] has been accessed. diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js index 1f4e67cea0..351d0dcd48 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js @@ -76,7 +76,7 @@ assert.sameValue( assert.sameValue( result, '42', - 'thisVal.valueOf expected to have been called.', + 'thisVal.valueOf expected to have been called.' ); // Test that thisVal[toPrimitive] and thisVal.toString has been accessed. diff --git a/test/built-ins/String/prototype/trimStart/this-value-whitespace.js b/test/built-ins/String/prototype/trimStart/this-value-whitespace.js index 00c711bb89..67b1d25b9e 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-whitespace.js +++ b/test/built-ins/String/prototype/trimStart/this-value-whitespace.js @@ -29,5 +29,5 @@ var expected = 'a' + wspc + 'b' + wspc; assert.sameValue( trimStart.call(str), - expected, + expected ); diff --git a/test/intl402/Locale/constructor-options-casefirst-valid.js b/test/intl402/Locale/constructor-options-casefirst-valid.js index dd74ffa9f2..391734a68c 100644 --- a/test/intl402/Locale/constructor-options-casefirst-valid.js +++ b/test/intl402/Locale/constructor-options-casefirst-valid.js @@ -47,18 +47,18 @@ for (const caseFirst of validCaseFirstOptions) { const expected = String(caseFirst); assert.sameValue( new Intl.Locale('en', options).toString(), - "en-u-kf-" + expected, + "en-u-kf-" + expected ); assert.sameValue( new Intl.Locale('en-u-kf-lower', options).toString(), - "en-u-kf-" + expected, + "en-u-kf-" + expected ); if ("caseFirst" in Intl.Locale.prototype) { assert.sameValue( new Intl.Locale('en-u-kf-lower', options).caseFirst, - expected, + expected ); } } diff --git a/test/intl402/Locale/constructor-options-numeric-valid.js b/test/intl402/Locale/constructor-options-numeric-valid.js index 6e75542b93..50880232a0 100644 --- a/test/intl402/Locale/constructor-options-numeric-valid.js +++ b/test/intl402/Locale/constructor-options-numeric-valid.js @@ -48,18 +48,18 @@ for (const [numeric, expected] of validNumericOptions) { const options = { numeric }; assert.sameValue( new Intl.Locale('en', options).toString(), - expected ? ("en-u-kn-" + expected) : "en", + expected ? ("en-u-kn-" + expected) : "en" ); assert.sameValue( new Intl.Locale('en-u-kn-true', options).toString(), - "en-u-kn-" + (expected || "true"), + "en-u-kn-" + (expected || "true") ); if ("numeric" in Intl.Locale.prototype) { assert.sameValue( new Intl.Locale('en-u-kf-lower', options).numeric, - expected, + expected ); } }