Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / assign / invoked-as-ctor.js
blobe60b4ff64550093cfc8772f02e6bb8ea75937de8
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:
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 ---*/
14 assert.throws(TypeError, function() {
15   new Object.assign({});
16 });
18 reportCompare(0, 0);