Skip to content

Commit

Permalink
Speed improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Apr 24, 2022
1 parent edaa0b1 commit f003194
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions parser-1.3/coffeescript/lib/parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ global.Parser = class Parser extends Grammar
a

value = func.apply(@, args)
while typeof(value) == 'function' or value instanceof Array
while value instanceof Object
value = @call value

@state_pop()
Expand Down Expand Up @@ -162,7 +162,7 @@ global.Parser = class Parser extends Grammar
debug_rule func.name, args...

value = func.apply(@, args)
while typeof(value) == 'function' or value instanceof Array
while value instanceof Object
value = @call value

if TRACE
Expand Down
4 changes: 2 additions & 2 deletions parser-1.3/javascript/lib/parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f003194

Please sign in to comment.