summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/test-error-accessors-with-wrappers.js
blob: 2afa881f3a332c9c62adc200edce18df2186f8cc (plain)
1
2
3
4
5
6
7
8
9
10
11
let g = newGlobal();

let error = g.eval("Error()");

// This should not throw.
assertEq(typeof error.stack, "string");

g.error = Error();

// Nor should this.
assertEq(g.eval("typeof error.stack"), "string");