Closed
Bug 585692
Opened 15 years ago
Closed 13 years ago
reuse code in js_ReportIsNotFunction to produce precise errors from natives
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: luke, Assigned: evilpies)
Details
Attachments
(1 file)
8.86 KB,
patch
|
Details | Diff | Splinter Review |
(Follow-up to bug 581900)
As described in bug 581900, natives can't assume they are called directly from the interpreter or that they know the sp-offset of their input values. js_ReportIsNotFunction avoids using JSDVG_SEARCH_STACK by intelligently searching the stack for the right Value*. This could be factored into DVG and reused by, e.g., obj_getPrototypeOf.
Assignee | ||
Updated•14 years ago
|
Assignee: general → evilpies
Assignee | ||
Comment 1•13 years ago
|
||
Just throwing it out there so we can think about if this is useful.
I think we should be able to replace most of the stack search code in js_DecompileValueGenerator, but for now I only try the new method and fall back to the new one.
This patch gives us better (for some definition of better, that still needs to evaluated) error reporting for free, when DecompileValueGenerator or ReportValueError is used.
Assignee | ||
Comment 2•13 years ago
|
||
Yaay -1 assigned bug for free, somebody fixed this stuff.
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: needinfo?
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?
You need to log in
before you can comment on or make changes to this bug.
Description
•