Debugger onPop completion object doesn't work with object types

RESOLVED INVALID

Status

()

Core
JavaScript Engine
RESOLVED INVALID
5 years ago
5 years ago

People

(Reporter: wingo, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 806633 [details]
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
Last Resolved: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.