added the typeof operater as an OpNode

This commit is contained in:
Jeremy Ashkenas
2009-12-24 11:50:44 -08:00
parent 5d1ec9d2a9
commit 7f502543d2
5 changed files with 12 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ module CoffeeScript
"for", "in", "while",
"switch", "when",
"super",
"delete", "instanceof"]
"delete", "instanceof", "typeof"]
# Token matching regexes.
IDENTIFIER = /\A([a-zA-Z$_]\w*)/