WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
86128
Error stack should not be read only
https://bugs.webkit.org/show_bug.cgi?id=86128
Summary
Error stack should not be read only
Erik Arvidsson
Reported
2012-05-10 12:29:21 PDT
Both SpiderMonkey and V8 allows the stack property of error objects to be written to. try { throw new Error; } catch (ex) { ex.stack = 42; console.assert(e.stack === 42); } JSC fails because it treats stack as a read only property.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Shvayka
Comment 1
2019-06-17 14:50:25 PDT
This is fixed as of rev. 246497. Property descriptor of "stack": { "value": "global code\\nevaluateWithScopeExtension@[native code]\\n\\n_wrapCall", "writable": true, // ! "enumerable": false, "configurable": true }
Sam Weinig
Comment 2
2021-04-21 14:18:08 PDT
***
Bug 86523
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug