summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug593559.js
blob: d9445c8b2f237413c4ce4501fe4bdfa549de491f (plain)
1
2
3
4
5
6
7
8
9
var gen = (function* () {yield})();
var t = gen.throw;
try {
    new t;
} catch (e) {
    actual = e;
}
assertEq(actual.name, "TypeError");
assertEq(/is not a constructor/.test(actual.message), true);