From 63c3ccfa2d89624f3fd881de205927387cdc09bc Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Tue, 4 Apr 2017 00:04:50 -0700 Subject: [PATCH] Code golf --- src/lexer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.coffee b/src/lexer.coffee index 92c59030bc..0a63cc5fc8 100644 --- a/src/lexer.coffee +++ b/src/lexer.coffee @@ -170,7 +170,7 @@ exports.Lexer = class Lexer isForFrom(prev) tag = 'FORFROM' @seenFor = no - else if tag is 'PROPERTY' and prev and prev.spaced and prev[0] in CALLABLE and /^[g|s]et$/.test(prev[1]) + else if tag is 'PROPERTY' and prev and prev.spaced and prev[0] in CALLABLE and /^[gs]et$/.test(prev[1]) @error "'#{prev[1]}' cannot be used as a keyword, or as a function call without parentheses", prev[2] if tag is 'IDENTIFIER' and id in RESERVED