Closed
Bug 836916
Opened 11 years ago
Closed 11 years ago
Stack trace in caught error (error.stack) no longer has arguments
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: javascriptjedi, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0 Build ID: 20130107124423 Steps to reproduce: Generate an error object via try { ... some code with an exception ... } catch (e) {}; Actual results: e.stack contains a stack trace without any arguments. Expected results: In versions of Firefox before FF14, arguments were present. for FF version >= 14, no arguments are present. There's no valid reason to hide the arguments for security purposes, as they can be discovered via stack walking. If this was done intentionally for some purpose, please explain.
Comment 1•11 years ago
|
||
Care to attach a reduced Testcase showing the Issue?
Flags: needinfo?(javascriptjedi)
Keywords: regressionwindow-wanted
Comment 2•11 years ago
|
||
(a guess)
Assignee: nobody → general
Blocks: 744842
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Comment 3•11 years ago
|
||
Yep. Reporter, see bug 744842 comment 0 for the reason the behavior changed.
Updated•11 years ago
|
Keywords: regressionwindow-wanted
Comment 4•11 years ago
|
||
Since this was a deliberate change (per bug 744842 comment 0), I'm assuming the request to undo it should be wontfix.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Flags: needinfo?(javascriptjedi)
Resolution: --- → WONTFIX
Comment 5•11 years ago
|
||
(In reply to Nickolay_Ponomarev from comment #4) > Since this was a deliberate change (per bug 744842 comment 0), I'm assuming > the request to undo it should be wontfix. Till version 14, I was using a framework https://github.com/txemagon/lluvia-Project that allowed dynamic methods by defining "function method_missing". If no arguments are provided in the error stack, this feature is over. If this is not a bug, how do I overcome this backward uncompatibility? Does anyone know? Thank you.
Comment 6•10 years ago
|
||
(In reply to txema.gonz from comment #5) > Till version 14, I was using a framework > https://github.com/txemagon/lluvia-Project that allowed dynamic methods by > defining "function method_missing". I think JS proxies can help here: http://wiki.ecmascript.org/doku.php?id=harmony:direct_proxies
You need to log in
before you can comment on or make changes to this bug.
Description
•