Closed
Bug 884201
Opened 11 years ago
Closed 11 years ago
Compiler: macros should fail gracefully if no required arguments are passed
Categories
(L20n :: JS Library, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
1.0
People
(Reporter: stas, Assigned: stas)
References
Details
<identity($n) { $n }> <thisFails "{{ identitiy() }}">
Assignee | ||
Updated•11 years ago
|
Priority: -- → P3
Target Milestone: --- → 1.0
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → stas
Assignee | ||
Comment 2•11 years ago
|
||
I went for failing early: Macro::_call compares the number of arguments passed with the macro's arity. Comment 1 throws. https://github.com/l20n/l20n.js/commit/322e08705568384a82225ff5631c866c6b79ac2e
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(gandalf)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•