Bug 256507 - Error.stackTraceLimit can not be updated correctly in LLInt
Summary: Error.stackTraceLimit can not be updated correctly in LLInt
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-08 20:35 PDT by vettalyray
Modified: 2023-05-15 20:36 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>