test-error-accessors-with-wrappers.js (211B)
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");