summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Promise/reject-function-extensible.js
blob: e53994dc0e745465eb4a503bbde42e167f1aad31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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.3.1
description: The [[Extensible]] slot of Promise Reject functions
info: |
  17 ECMAScript Standard Built-in Objects:
    Unless specified otherwise, the [[Extensible]] internal slot
    of a built-in object initially has the value true.
---*/

var rejectFunction;
new Promise(function(resolve, reject) {
  rejectFunction = reject;
});

assert(Object.isExtensible(rejectFunction));

reportCompare(0, 0);