Debian Codegraph @

js/src/jit-test/tests/fields/bug1547129.js

raw
1 load(libdir + "asserts.js");
2
3 new class foo extends Array {
4 e = function() {}
5 }
6
7 source = `new class bar extends Promise { e = function() {} }`;
8 // Calling the Promise constructor with empty args fails with TypeError.
9 assertThrowsInstanceOf(() => eval(source), TypeError);
10
11 class Base {
12 constructor() {
13 return new Proxy({}, {});
14 }
15 }
16
17 new class prox extends Base {
18 e = function () {}
19 }