Skip to content

Commit

Permalink
Remove incorrect property access
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed May 17, 2024
1 parent d4fac47 commit 3d3df6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/built-ins/Promise/try/ctx-ctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class SubPromise extends Promise {

var instance = Promise.try.call(SubPromise, function () {});

assert.sameValue(instance.promise.constructor, SubPromise);
assert.sameValue(instance.promise instanceof SubPromise, true);
assert.sameValue(instance.constructor, SubPromise);
assert.sameValue(instance instanceof SubPromise, true);

assert.sameValue(callCount, 1);
assert.sameValue(typeof executor, 'function');

0 comments on commit 3d3df6e

Please sign in to comment.