UNPKG

shift-interpreter

Version:

Shift-interpreter is an experimental JavaScript meta-interpreter useful for reverse engineering and analysis. One notable difference from other projects is that shift-interpreter retains state over an entire script but can be fed expressions and statement

8 lines (6 loc) 213 B
import { assertResult, compare } from '../util'; describe('conditional expressions', () => { it('should evaluate basic conditional expressions', () => { assertResult(compare('true ? "a" : "b"')); }); });