cloudhead/less.js — Issue #490: URL.JS Fix causes an error in the console
Author: MaximSavin
Created: 2011-11-26 03:02:46+00:00
State: open

https://github.com/cloudhead/less.js/commit/40601f8a61789d105b37772a849773cc4177b0dd

This fix causes an error in the console:

```log
Maxims-MacBook-Pro:bin maximsavin$ ./lessc style.less

/Users/maximsavin/Projects/less.js/lib/less/tree/url.js:8
if (less.mode === 'browser' && !/^(?:https?:\/\/|file:\/\/|data:|\/)/.
^
ReferenceError: less is not defined
at Object. (/Users/maximsavin/Projects/less.js/lib/less/tree/url.js:8:23)
at Object. (/Users/maximsavin/Projects/less.js/lib/less/parser.js:565:28)
at $ (/Users/maximsavin/Projects/less.js/lib/less/parser.js:113:24)
at Object.entity (/Users/maximsavin/Projects/less.js/lib/less/parser.js:768:81)
at $ (/Users/maximsavin/Projects/less.js/lib/less/parser.js:113:24)
at Object.expression (/Users/maximsavin/Projects/less.js/lib/less/parser.js:1097:48)
at $ (/Users/maximsavin/Projects/less.js/lib/less/parser.js:113:24)
at Object.value (/Users/maximsavin/Projects/less.js/lib/less/parser.js:1031:28)
at $ (/Users/maximsavin/Projects/less.js/lib/less/parser.js:113:24)
at Object.rule (/Users/maximsavin/Projects/less.js/lib/less/parser.js:944:33)
```