Open Bug 1169076 Opened 9 years ago Updated 2 years ago

Make new.target work inside debugger eval

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

People

(Reporter: efaust, Unassigned)

References

(Blocks 1 open bug)

Details

Currently, we cannot parse "new.target" in Debugger.Frame.prototype.eval. This is because we do not hook up the static scope chain to allow our scope chains to walk and find the function to ensure that the syntax is valid. Shu and I talked about this, and decided that we should add a flag to StaticScopeIter to have it know how to walk through the debug eval scope. This will default to "no", and we can explcitly pass it in knowing that we are not relying on the bijection between static and dynamic scopes that would be broken by going through debugger eval chains.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.