Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/arrow-function/throw-new.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: 12.3.3.1.1
5 description: >
6 Runtime Semantics: EvaluateNew(constructProduction, arguments)
7
8 ...
9 8. If IsConstructor (constructor) is false, throw a TypeError exception.
10 ...
11
12 ---*/
13
14 assert.throws(TypeError, function() { new (() => {}); });