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