Reflect.parse fails to distinguish between FunctionStatement and FunctionDeclaration after constant-folding

RESOLVED FIXED

Status

()

Core
JavaScript Engine
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: jorendorff, Unassigned)

Tracking

Other Branch
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: reflect-parse fixed-in-tracemonkey)

(Reporter)

Description

7 years ago
Reflect.parse returns the same AST for
  f; if (1) function f(){}
as for
  f; function f(){}
but they are two different programs.

Updated

7 years ago
Depends on: 571617

Updated

7 years ago
Whiteboard: reflect-parse
This should go away with the patch for bug 571617.

Dave
Fixed automatically by fix for bug 571617. Landed a test:

http://hg.mozilla.org/tracemonkey/rev/727bc475bb62

Dave
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Flags: in-testsuite+
Resolution: --- → WORKSFORME
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/727bc475bb62
Note: not marking as fixed because fixed-in-tracemonkey is not present on the whiteboard.

Updated

6 years ago
Resolution: WORKSFORME → FIXED
Whiteboard: reflect-parse → reflect-parse fixed-in-tracemonkey
You need to log in before you can comment on or make changes to this bug.