From f70226461732321780a04f5c5dd02ed753ede0cf Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Mon, 3 Sep 2012 12:39:02 +0300 Subject: jumps, try and definitions are statements too --- lib/ast.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/ast.js') diff --git a/lib/ast.js b/lib/ast.js index 9dd92cb2..48904ec9 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -248,7 +248,7 @@ var AST_Defun = DEFNODE("Defun", null, { var AST_Jump = DEFNODE("Jump", null, { $documentation: "Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)" -}); +}, AST_Statement); var AST_Exit = DEFNODE("Exit", "value", { $documentation: "Base class for “exits” (`return` and `throw`)", @@ -353,7 +353,7 @@ var AST_Try = DEFNODE("Try", "btry bcatch bfinally", { if (this.bfinally) this.bfinally._walk(visitor); }); } -}); +}, AST_Statement); // XXX: this is wrong according to ECMA-262 (12.4). the catch block // should introduce another scope, as the argname should be visible @@ -391,7 +391,7 @@ var AST_Definitions = DEFNODE("Definitions", "definitions", { }); }); } -}); +}, AST_Statement); var AST_Var = DEFNODE("Var", null, { $documentation: "A `var` statement" -- cgit v1.2.3