remove some trailing commas in calls

This commit is contained in:
Kevin Gibbons 2018-09-20 20:33:01 -07:00 committed by Rick Waldron
parent 7158058458
commit 89ec038cf2
15 changed files with 19 additions and 19 deletions

View File

@ -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"');

View File

@ -26,5 +26,5 @@ var expected = lt + 'a' + lt + 'b';
assert.sameValue(
trimEnd.call(str),
expected,
expected
);

View File

@ -55,5 +55,5 @@ assert.throws(
TypeError,
function() {
String.prototype.trimEnd.call(thisVal);
},
}
);

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -29,5 +29,5 @@ var expected = wspc + 'a' + wspc + 'b';
assert.sameValue(
trimEnd.call(str),
expected,
expected
);

View File

@ -26,5 +26,5 @@ var expected = 'a' + lt + 'b' + lt;
assert.sameValue(
trimStart.call(str),
expected,
expected
);

View File

@ -55,5 +55,5 @@ assert.throws(
TypeError,
function() {
String.prototype.trimStart.call(thisVal);
},
}
);

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -29,5 +29,5 @@ var expected = 'a' + wspc + 'b' + wspc;
assert.sameValue(
trimStart.call(str),
expected,
expected
);

View File

@ -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
);
}
}

View File

@ -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
);
}
}