Skip to content

Commit 33bbef9

Browse files
Merge pull request #5285 from helixbass/browser-compiler-call-parsing-error
Browser compiler call parsing fix
2 parents 8677a0d + c4f0c9e commit 33bbef9

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

lib/coffeescript/grammar.js

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coffeescript/parser.js

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/grammar.coffee

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -524,16 +524,16 @@ grammar =
524524

525525
# Ordinary function invocation, or a chained series of calls.
526526
Invocation: [
527-
o 'Value OptFuncExist String', -> new TaggedTemplateCall $1, $3, $2
528-
o 'Value OptFuncExist Arguments', -> new Call $1, $3, $2
529-
o 'SUPER OptFuncExist Arguments', -> new SuperCall LOC(1)(new Super), $3, $2, $1
527+
o 'Value OptFuncExist String', -> new TaggedTemplateCall $1, $3, $2.soak
528+
o 'Value OptFuncExist Arguments', -> new Call $1, $3, $2.soak
529+
o 'SUPER OptFuncExist Arguments', -> new SuperCall LOC(1)(new Super), $3, $2.soak, $1
530530
o 'DYNAMIC_IMPORT Arguments', -> new DynamicImportCall LOC(1)(new DynamicImport), $2
531531
]
532532

533533
# An optional existence check on a function.
534534
OptFuncExist: [
535-
o '', -> no
536-
o 'FUNC_EXIST', -> yes
535+
o '', -> soak: no
536+
o 'FUNC_EXIST', -> soak: yes
537537
]
538538

539539
# The list of arguments to a function call.

0 commit comments

Comments
 (0)