Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/assign/invoked-as-ctor.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 es6id: 19.1.2.1
5 description: Invoked as a constructor
6 info: |
7 ES6 Section 9.3:
8
9 Built-in function objects that are not identified as constructors do not
10 implement the [[Construct]] internal method unless otherwise specified in
11 the description of a particular function.
12 ---*/
13
14 assert.throws(TypeError, function() {
15 new Object.assign({});
16 });