benmarch / spel2js

Parse Spring Expression Language in JavaScript
Other
69 stars 19 forks source link

Expression with negative value failed to compile #12

Open Raccoonwao opened 3 years ago

Raccoonwao commented 3 years ago

spel2js failed to compile expression with negative value version: 0.2.6

test('test', () => {
    let c = spel2js.SpelExpressionEvaluator.compile('1.0 > -5000.0')  // fail to compile
    console.log(c);
})

// test failed
// Cannot read property 'setParent' of undefined
ukrbublik commented 2 years ago

Should be fixed in 0.2.8