bem / bem-bl

Base BEM library
http://bem.github.com/bem-bl/
198 stars 84 forks source link

xjst to js compilation failed with BEMHTML_ENV = production #289

Closed narqo closed 12 years ago

narqo commented 12 years ago

Template:

block b1 {
   content: applyNext(this._someFlag = 'blah')
}

fails with

Error: xjst to js compilation failed:
Error: skipBraces rule failed at: [ [ 'return',
    [ 'var',
      [ '__r71' ],
      [ '__r75' ],
      [ '__r72' ],
      [ '__r73' ],
      [ '__r74' ] ],
    [ 'binop',
      ',',
      [ 'binop',
        ',',
        [ 'binop', ',', [Object], [Object] ],
        [ 'localEnd' ] ],
      [ 'get', '__r75' ] ] ] ]:0
    at XJSTCompiler.getError [as _getError] ([...]/node_modules/ometajs/lib/ometajs/core/grammar.js:65:37)
...

in production-mode (BEMHTML_ENV = production), but works fine in development.

indutny commented 12 years ago

Thanks, fixed!