Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js

raw
1 // Copyright 2014 Cubane Canada, Inc. All rights reserved.
2 // See LICENSE for details.
3
4 /*---
5 info: |
6 Promise.all should throw if 'this' does not conform to Promise constructor
7 es6id: S25.4.4.1_A4.1_T1
8 description: this must conform to Promise constructor in Promise.all
9 author: Sam Mikes
10 ---*/
11
12 function ZeroArgConstructor() {}
13
14 assert.throws(TypeError, function() {
15 Promise.all.call(ZeroArgConstructor, []);
16 });