mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-21 04:37:59 -05:00
finishing up fix for #1009: class @do; it's a little bit ugly, but it
makes sense to do it this way
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
if (__indexOf.call(JS_FORBIDDEN, id) >= 0) {
|
||||
if (__indexOf.call(['eval', 'arguments'].concat(JS_FORBIDDEN), id) >= 0) {
|
||||
if (forcedIdentifier) {
|
||||
tag = 'IDENTIFIER';
|
||||
id = new String(id);
|
||||
|
||||
@@ -333,8 +333,8 @@
|
||||
}
|
||||
};
|
||||
Literal.prototype.compileNode = function(o) {
|
||||
var code;
|
||||
code = this.isUndefined ? o.level >= LEVEL_ACCESS ? '(void 0)' : 'void 0' : this.value.reserved ? "\"" + this.value + "\"" : this.value;
|
||||
var code, _ref2;
|
||||
code = this.isUndefined ? o.level >= LEVEL_ACCESS ? '(void 0)' : 'void 0' : this.value.reserved && ((_ref2 = "" + this.value) !== 'eval' && _ref2 !== 'arguments') ? "\"" + this.value + "\"" : this.value;
|
||||
if (this.isStatement()) {
|
||||
return "" + this.tab + code + ";";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user