blob: d1f7f24879ed5ed14a7f003b530f6911902da64e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Generator expressions cannot be used as constructors.
es6id: 14.4
features: [generators]
---*/
var g = function*(){};
assert.throws(TypeError, function() {
var instance = new g();
});
reportCompare(0, 0);
|