Debian Codegraph @

js/src/jit-test/tests/basic/test-error-accessors-with-wrappers.js

raw
1 let g = newGlobal();
2
3 let error = g.eval("Error()");
4
5 // This should not throw.
6 assertEq(typeof error.stack, "string");
7
8 g.error = Error();
9
10 // Nor should this.
11 assertEq(g.eval("typeof error.stack"), "string");