mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
nodes: made ExistenceNode omit typeof for known variables
This commit is contained in:
@@ -547,14 +547,14 @@
|
||||
if (!(tok = last(this.tokens, index))) {
|
||||
return null;
|
||||
}
|
||||
return (tok[0] = (typeof newTag !== "undefined" && newTag !== null) ? newTag : tok[0]);
|
||||
return (tok[0] = (newTag != null) ? newTag : tok[0]);
|
||||
};
|
||||
Lexer.prototype.value = function(index, val) {
|
||||
var tok;
|
||||
if (!(tok = last(this.tokens, index))) {
|
||||
return null;
|
||||
}
|
||||
return (tok[1] = (typeof val !== "undefined" && val !== null) ? val : tok[1]);
|
||||
return (tok[1] = (val != null) ? val : tok[1]);
|
||||
};
|
||||
Lexer.prototype.unfinished = function() {
|
||||
var prev, value;
|
||||
|
||||
Reference in New Issue
Block a user