Closed Bug 917809 Opened 12 years ago Closed 12 years ago

Debugger onPop completion object doesn't work with object types

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: wingo, Unassigned)

Details

Attachments

(1 file)

Attached file Frame-onPop-22.js
The attached test case fails, because for some reason the onPop handler can't read objects. No other test case covers this case; they all use non-object return value types.
c.return is a Debugger.Object object. It doesn't automatically reflect the referent's properties, and that's why `c.return.foo` doesn't work. Instead you can say: c.return.getOwnPropertyDescriptor("foo").value Inconvenient, I know. We made a conscious design decision to make all operations on debuggee values extremely explicit, so that debugger code never accidentally causes the debuggee to run. Test code ends up looking kind of weird.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: