Skip to content

Commit f676215

Browse files
author
Zibi Braniecki
committed
Allow CallExpression to be created with default value for args
1 parent 3331c5d commit f676215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluent-syntax/src/ast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class VariantExpression extends Expression {
151151
}
152152

153153
export class CallExpression extends Expression {
154-
constructor(callee, args) {
154+
constructor(callee, args = []) {
155155
super();
156156
this.type = 'CallExpression';
157157
this.callee = callee;

0 commit comments

Comments
 (0)