aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-09 18:35:53 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-09 18:35:53 +0300
commita84d07e31298fc1f8825b0047629634920667707 (patch)
tree44f924b4e5625900a2fdaf279401789b7a8b1be4 /lib/ast.js
parent88beddfa91c8f362cc74538937ce883541e77680 (diff)
downloadtracifyjs-a84d07e31298fc1f8825b0047629634920667707.tar.gz
tracifyjs-a84d07e31298fc1f8825b0047629634920667707.zip
add AST_Infinity node
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js5
1 files changed, 5 insertions, 0 deletions
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);