aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-18 10:53:46 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-18 10:53:46 +0300
commit21968285e8fad1cfe775b389c6bcd16e14b62c6c (patch)
treeb1b26e0fc3f57e1ffee26d534552658b2404cf9a /lib/ast.js
parentd91613b4a8318b7fdd0d18cf6550e6670c59f71e (diff)
downloadtracifyjs-21968285e8fad1cfe775b389c6bcd16e14b62c6c.tar.gz
tracifyjs-21968285e8fad1cfe775b389c6bcd16e14b62c6c.zip
added AST_NaN (output as 0/0)
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 55e95033..39a62b16 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -661,6 +661,11 @@ var AST_Null = DEFNODE("Null", null, {
value: null
}, AST_Atom);
+var AST_NaN = DEFNODE("NaN", null, {
+ $documentation: "The impossible value",
+ value: 0/0
+}, AST_Atom);
+
var AST_Undefined = DEFNODE("Undefined", null, {
$documentation: "The `undefined` value",
value: (function(){}())