tests/auto/qml/ecmascripttests/test262/test/built-ins/Array/of/not-a-constructor.js
raw| 1 | // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | /*--- |
| 4 | esid: sec-array.of |
| 5 | es6id: 22.1.2.3 |
| 6 | description: > |
| 7 | Array.of is not a constructor. |
| 8 | ---*/ |
| 9 | |
| 10 | assert.throws(TypeError, function() { |
| 11 | new Array.of(); |
| 12 | }); |