matthewdl/Crunch — Issue #13: Javascript eval Error
Author: gaetanark
Created: 2012-01-11 16:13:32+00:00
State: open

Here is the piece of code I try to compile but that triggers an error.

.fs(@fs) { font-size: ~`(@{fs}/15*100).toFixed(1) + '%'`; }
.toto {.fs(15); }

Error message :
JavaScript evaluation error: `(15/13*100).toFixed(1) + '%'` Index: 56

This works fine in less.app and seems correct.