* Figuring out where to place throw statement * Restored path argument destructuring * New approach using comma expressions for assignments * Moved throwNode into body of forXstatements * Refactored with helper function and ensureBlock, additional tests for update exprs * Added exec tests for all violations * Hoisted helper function for comma expression outside of visitor
9 lines
127 B
JavaScript
9 lines
127 B
JavaScript
var c = 17;
|
|
var a = 0;
|
|
|
|
function f() {
|
|
return (function () {
|
|
throw new Error("\"c\" is read-only");
|
|
}(), ++c) + --a;
|
|
}
|