2015-06-10 23:53:27 +02:00
|
|
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
es6id: 19.1.2.1
|
|
|
|
description: Invoked as a constructor
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2015-06-10 23:53:27 +02:00
|
|
|
ES6 Section 9.3:
|
|
|
|
|
|
|
|
Built-in function objects that are not identified as constructors do not
|
|
|
|
implement the [[Construct]] internal method unless otherwise specified in
|
|
|
|
the description of a particular function.
|
|
|
|
---*/
|
|
|
|
|
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
new Object.assign({});
|
|
|
|
});
|