aboutsummaryrefslogtreecommitdiff
path: root/test/js/promise_s09.t.js
blob: ff4100237c09f2c806f62b6ac18b712bb78e5928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*---
includes: [compareArray.js]
flags: []
---*/

let calls = [];

function NotPromise(executor) {
  assert.sameValue(Object.isExtensible(executor), true);
  executor(function() {calls.push('S')}, function() {calls.push('R')});
}

Promise.resolve.call(NotPromise);

assert.compareArray(calls, ['S']);