blob: d77c09185a13007895e993a39d0a4160d108424d [file] [log] [blame] [edit]
delete Error.stackTraceLimit
// sourceURL is not materialized
function cacheColumn(o) {
delete o.sourceURL
}
noInline(cacheColumn)
for (let i = 0; i < 200; ++i) {
let e = Error()
cacheColumn(e)
if (e.sourceURL !== undefined)
throw "Test failed on iteration " + i + " " + e.sourceURL
if (i == 197) {
// now it is
Error.stackTraceLimit = 10
}
}