mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Ecmascript Syntax Fix
* module/language/ecmascript/parse.scm: allow empty function bodies. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
d9f24bc917
commit
eacbe34618
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@
|
|||
(SourceElements SourceElement) : (if (and (pair? $1) (eq? (car $1) 'begin))
|
||||
`(begin ,@(cdr $1) ,$2)
|
||||
`(begin ,$1 ,$2)))
|
||||
(FunctionBody (SourceElements) : $1)
|
||||
(FunctionBody (SourceElements) : $1
|
||||
() : '(begin))
|
||||
|
||||
(Statement (Block) : $1
|
||||
(VariableStatement) : $1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue