lib/minjs/lex/parser.rb in minjs-0.4.0 vs lib/minjs/lex/parser.rb in minjs-0.4.1
- old
+ new
@@ -31,15 +31,10 @@
@logger = options[:logger]
@eval_nest = 0
end
- # return Parser itself
- def lex
- self
- end
-
# clear cache of ECMA262 elements
def clear_cache
@lit_cache = {}
@lit_nextpos = {}
end
@@ -282,10 +277,10 @@
elsif identifier_part?(code)
chars.push(code)
@pos += 1
else
name = chars.pack("U*").to_sym
- return ECMA262::IdentifierName.get(nil, name)
+ return ECMA262::IdentifierName.get(name)
end
end
end
# Tests next literal is Punctuator or not