summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js')
-rw-r--r--test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js
index 253e22fe3..cdeccdadd 100644
--- a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js
+++ b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js
@@ -11,11 +11,9 @@ features: [Symbol, Promise.prototype.finally]
var symbol = Symbol();
-var thrower = function() {
- throw new Test262Error('this should never happen');
-};
+var thrower = function () { throw new Test262Error('this should never happen'); };
-var p = new Promise(function() {});
+var p = new Promise(function () {});
p.then = undefined;
assert.throws(TypeError, function() {