Bug 256507
| Summary: | Error.stackTraceLimit can not be updated correctly in LLInt | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | vettalyray |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | mark.lam, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
vettalyray
==================test.js=============
function f(a1) {
try{
Error.stackTraceLimit = a1;
throw Error()
}
catch(e)
{
return e.stack;
}
}
for (let i = 0; i < 2; i++) {
print(f(i));
}
=====================================
Run args:
./jsc test.js
JSC prints two "undefined". V8 prints "undefined" and a stacktrace.
The same problem is in Safari console.
Error.statckTraceLimit can not be modified correctly in LLInt.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Dupe of bug 255508?
Radar WebKit Bug Importer
<rdar://problem/109385674>