diff options
author | Linus Groh <mail@linusgroh.de> | 2020-04-02 22:08:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-03 00:10:52 +0200 |
commit | 2636cac6e4705714305fd13e6ac7b0d93f75e225 (patch) | |
tree | a6151e8fcf4c4812fdab835efd6da0ecaedf336a /Libraries/LibJS/Token.h | |
parent | 543c6e00db9538cbd0d56b630d98450544c63aa8 (diff) | |
download | serenity-2636cac6e4705714305fd13e6ac7b0d93f75e225.zip |
LibJS: Remove UndefinedLiteral, add undefined to global object
There is no such thing as a "undefined literal" in JS - undefined is
just a property on the global object with a value of undefined.
This is pretty similar to NaN.
var undefined = "foo"; is a perfectly fine AssignmentExpression :^)
Diffstat (limited to 'Libraries/LibJS/Token.h')
-rw-r--r-- | Libraries/LibJS/Token.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Libraries/LibJS/Token.h b/Libraries/LibJS/Token.h index 6e81c4fcf1..2291fc1965 100644 --- a/Libraries/LibJS/Token.h +++ b/Libraries/LibJS/Token.h @@ -114,7 +114,6 @@ namespace JS { __ENUMERATE_JS_TOKEN(Tilde) \ __ENUMERATE_JS_TOKEN(Try) \ __ENUMERATE_JS_TOKEN(Typeof) \ - __ENUMERATE_JS_TOKEN(UndefinedLiteral) \ __ENUMERATE_JS_TOKEN(UnsignedShiftRight) \ __ENUMERATE_JS_TOKEN(UnsignedShiftRightEquals) \ __ENUMERATE_JS_TOKEN(UnterminatedStringLiteral) \ |