Closed Bug 405997 Opened 17 years ago Closed 5 years ago

const-propagate global constants when compiling Function

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: igor, Unassigned)

References

Details

[This is a spin-off of bug 404935 comment 18.]

Currently the const-propagation from the global scope is only done for eval scripts or other user of js_CompileScript that pass TCF_COMPILE_N_GO flag. It is not done when JS calls the Function constructor or, in general, for any user of js_CompileFunctionBody API, see bug 404935 comment 18 for details. It would be nice to remove such discrepancy.
Assignee: general → nobody

Ion propagates constants for cases like bug 404935 comment 18, therefore resolving as WFM.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.