summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/harmony/promise-prototype-finally.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/promise-prototype-finally.js')
-rw-r--r--deps/v8/test/mjsunit/harmony/promise-prototype-finally.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/harmony/promise-prototype-finally.js b/deps/v8/test/mjsunit/harmony/promise-prototype-finally.js
index 3668ab5538..4e91f2e6d1 100644
--- a/deps/v8/test/mjsunit/harmony/promise-prototype-finally.js
+++ b/deps/v8/test/mjsunit/harmony/promise-prototype-finally.js
@@ -605,3 +605,13 @@ testAsync(assert => {
.then(() => assert.equals(1, value));
}, "PromiseResolve-ordering");
+
+(function testIsObject() {
+ var called = false;
+ var p = new Proxy(Promise.resolve(), {});
+ var oldThen = Promise.prototype.then;
+ Promise.prototype.then = () => called = true;
+ Promise.prototype.finally.call(p);
+ assertTrue(called);
+ Promise.prototype.then = oldThen;
+})();