summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js
blob: efdf80c4a83daa4ab131a2588f4013fc6aecabaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2014 Cubane Canada, Inc.  All rights reserved.
// See LICENSE for details.

/*---
info: |
    catch is a method on a Promise
es6id: S25.4.5.1_A2.1_T1
author: Sam Mikes
description: catch is a method on a Promise
---*/

var p = Promise.resolve(3);

assert(
  !!(p.catch instanceof Function),
  'The value of !!(p.catch instanceof Function) is expected to be true'
);

reportCompare(0, 0);