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) 188 B
import { assertResult, compare } from '../util'; describe('Errors', () => { it('should throw', () => { assertResult(compare("throw new Error('hello world')", { Error })); }); });