1 2 3 4 5 6
// Test evaluate's catchTermination option. var x = 0; assertEq(evaluate('x = 1; terminate(); x = 2;', { catchTermination: true }), "terminated"); assertEq(x, 1);