summaryrefslogtreecommitdiff
path: root/js/src/builtin/Promise.js
blob: 704cbab0be60d8f5df1d53c64e9a1ed6f32fd498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// ES6, 25.4.4.6.
function Promise_static_get_species() {
    // Step 1.
    return this;
}
_SetCanonicalName(Promise_static_get_species, "get [Symbol.species]");

// ES6, 25.4.5.1.
function Promise_catch(onRejected) {
    // Steps 1-2.
    return callContentFunction(this.then, this, undefined, onRejected);
}