summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug593559.js
blob: 59994f362a6bc21c3a52294f789bc7069db9b806 (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);