2015-11-24 20:12:55 +01:00
|
|
|
// Copyright (C) 2015 André Bargull. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
es6id: 25.4.1.5.1
|
|
|
|
description: The [[Extensible]] slot of GetCapabilitiesExecutor functions
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2015-11-24 20:12:55 +01:00
|
|
|
17 ECMAScript Standard Built-in Objects:
|
|
|
|
Unless specified otherwise, the [[Extensible]] internal slot
|
|
|
|
of a built-in object initially has the value true.
|
|
|
|
---*/
|
|
|
|
|
|
|
|
var executorFunction;
|
2018-02-15 21:11:21 +01:00
|
|
|
|
2015-11-24 20:12:55 +01:00
|
|
|
function NotPromise(executor) {
|
|
|
|
executorFunction = executor;
|
2018-02-15 21:11:21 +01:00
|
|
|
executor(function() {}, function() {});
|
2015-11-24 20:12:55 +01:00
|
|
|
}
|
|
|
|
Promise.resolve.call(NotPromise);
|
|
|
|
|
|
|
|
assert(Object.isExtensible(executorFunction));
|