Bug 256507

Summary: Error.stackTraceLimit can not be updated correctly in LLInt
Product: WebKit Reporter: vettalyray
Component: JavaScriptCoreAssignee: 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   

Description vettalyray 2023-05-08 20:35:50 PDT
==================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.
Comment 1 Alexey Proskuryakov 2023-05-09 09:09:57 PDT
Dupe of bug 255508?
Comment 2 Radar WebKit Bug Importer 2023-05-15 20:36:20 PDT
<rdar://problem/109385674>