Skip to content

Commit

Permalink
restrict to Object
Browse files Browse the repository at this point in the history
  • Loading branch information
helixbass committed Jul 5, 2017
1 parent 51f9bba commit 36222ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/coffeescript/grammar.js

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

6 changes: 3 additions & 3 deletions lib/coffeescript/parser.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/grammar.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ grammar =
# A return statement from a function body.
Return: [
o 'RETURN Expression', -> new Return $2
o 'RETURN INDENT Expression OUTDENT', -> new Return $3
o 'RETURN INDENT Object OUTDENT', -> new Return new Value $3
o 'RETURN', -> new Return
]

Expand Down Expand Up @@ -556,7 +556,7 @@ grammar =
# Throw an exception object.
Throw: [
o 'THROW Expression', -> new Throw $2
o 'THROW INDENT Expression OUTDENT', -> new Throw $3
o 'THROW INDENT Object OUTDENT', -> new Throw new Value $3
]

# Parenthetical expressions. Note that the **Parenthetical** is a **Value**,
Expand Down

0 comments on commit 36222ee

Please sign in to comment.