私はEsprimaパーサーを使用しています。Mozilla Spider Monkey Parser APIと互換性のあるAST形式を出力します。
Mozilla Docsでは、Functionノードを次のように指定しています。
interface Function <: Node {
id: Identifier | null;
params: [ Pattern ];
defaults: [ Expression ];
rest: Identifier | null;
body: BlockStatement | Expression;
generator: boolean;
expression: boolean;
}
defaultsプロパティには何が含まれますか? 常に空の配列として表示されます。