blob: 2afa881f3a332c9c62adc200edce18df2186f8cc [file] [log] [blame]
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");