Closed Bug 816887 Opened 12 years ago Closed 11 years ago

Macro should always return a String or a Literal

Categories

(L20n :: JS Library, defect, P2)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

Details

The return value of a macro should always be cast to a primitive value (before it is returned).
Assignee: nobody → stas
Priority: -- → P2
Target Milestone: --- → 1.0
Priority: P2 → P1
Priority: P1 → P2
https://github.com/l20n/l20n.js/commit/17a9fb45e255c8725e6443e2ae81c55cb283fe37 While working on this fix I realized that there's a potential for optimization related to locals.__this__. I filed bug 885984.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.