lesscss-java icon indicating copy to clipboard operation
lesscss-java copied to clipboard

org.lesscss.LessException: org.mozilla.javascript.EcmaError: TypeError: Cannot find function bind in object

Open dzsodzso63 opened this issue 9 years ago • 1 comments

I got this error always in my mac I tried with different java versions, different rhino versions, even tried to upgrade my os to OS X Yosemite. Nothing helps. Using lessc command line (npm) works.

org.lesscss.LessException: org.mozilla.javascript.EcmaError: TypeError: Cannot find function bind in object
  function _math(fn, unit, n) {
      if (!(n instanceof tree.Dimension)) {
          throw {type:"Argument", message:"argument must be a number"};
      }
      if (unit == null) {
          unit = n.unit;
      } else {
          n = n.unify();
      }
      return new (tree.Dimension)(fn(parseFloat(n.value)), unit);
  }
  . (jar:file:.../lesscss-1.7.0.1.1.jar!/META-INF/less-rhino-1.7.0.js#2926)

dzsodzso63 avatar Mar 03 '15 10:03 dzsodzso63

Same problem. I'm using yuicompressor, maybe it's incompatible.

stefv avatar Jul 21 '16 15:07 stefv