TomFrost / Jexl

Javascript Expression Language: Powerful context-based expression parser and evaluator
MIT License
573 stars 93 forks source link

evalSync doesn't seem to throw when there are multiple queries. #55

Closed bitghostm closed 5 years ago

bitghostm commented 5 years ago
it('throws if one of the query fails', async () => {
      inst.addTransform('q1', (val, args) => { throw new Error('oops') })
      inst.addBinaryOp('is', 100, (val, args) => { return true })
      expect(inst.evalSync.bind(inst, '"hello"|q1 is asdf')).toThrow(/oops/)
    })

56