From a84d07e31298fc1f8825b0047629634920667707 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 9 Oct 2012 18:35:53 +0300 Subject: add AST_Infinity node --- lib/ast.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ast.js') diff --git a/lib/ast.js b/lib/ast.js index 7324e696..afbd775f 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -845,6 +845,11 @@ var AST_Undefined = DEFNODE("Undefined", null, { value: (function(){}()) }, AST_Atom); +var AST_Infinity = DEFNODE("Infinity", null, { + $documentation: "The `Infinity` value", + value: 1/0 +}, AST_Atom); + var AST_Boolean = DEFNODE("Boolean", null, { $documentation: "Base class for booleans", }, AST_Atom); -- cgit v1.2.3