summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js')
-rw-r--r--test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js
index 7736d7ff0..ef89429a2 100644
--- a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js
+++ b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js
@@ -9,20 +9,20 @@ description: >
author: Jordan Harband
---*/
-assert.throws(TypeError, function() {
- String.prototype.padEnd.call(null);
+assert.throws(TypeError, function () {
+ String.prototype.padEnd.call(null);
});
-assert.throws(TypeError, function() {
- String.prototype.padEnd.call(undefined);
+assert.throws(TypeError, function () {
+ String.prototype.padEnd.call(undefined);
});
var notCoercible = {
- toString: function() {
- throw new Test262Error('attempted toString');
- }
+ toString: function () {
+ throw new Test262Error('attempted toString');
+ }
};
-assert.throws(Test262Error, function() {
- String.prototype.padEnd.call(notCoercible);
+assert.throws(Test262Error, function () {
+ String.prototype.padEnd.call(notCoercible);
});