Mauro Bringolf 92fc26d399 Remove check-constants plugin (#6987)
* Rebased onto new version

* Moved constants check into a separate method
2018-01-26 10:43:09 -05:00

9 lines
169 B
JavaScript

function _readOnlyError(name) { throw new Error("\"" + name + "\" is read-only"); }
var c = 17;
var a = 0;
function f() {
return (_readOnlyError("c"), ++c) + --a;
}