Create a new symbol for methods' names

This commit is contained in:
Fábio Santos
2015-10-26 22:14:55 +00:00
committed by Richard van Velzen
parent da8c428a07
commit 34213ea2f8
2 changed files with 5 additions and 1 deletions

View File

@@ -1449,7 +1449,7 @@ function parse($TEXT, options) {
if (is("punc", "(")) {
a.push(new AST_ConciseMethod({
start : start,
name : new AST_Symbol({ name: name }), // TODO what symbol is this really?
name : new AST_SymbolMethod({ name: name }),
argnames : params_or_seq_().as_params(croak),
body : _function_body(true),
end : prev()