Merge pull request #620 from rdrpenguin04/patch-1

Add true and false as JS Keywords
This commit is contained in:
Vadim Grigoruk 2018-06-11 22:34:47 +03:00 committed by GitHub
commit a783eae76b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -936,7 +936,8 @@ static const char* const JsKeywords [] =
"break", "do", "instanceof", "typeof", "case", "else", "new", "break", "do", "instanceof", "typeof", "case", "else", "new",
"var", "catch", "finally", "return", "void", "continue", "for", "var", "catch", "finally", "return", "void", "continue", "for",
"switch", "while", "debugger", "function", "this", "with", "switch", "while", "debugger", "function", "this", "with",
"default", "if", "throw", "delete", "in", "try", "const" "default", "if", "throw", "delete", "in", "try", "const",
"true", "false"
}; };
static inline bool isalnum_(char c) {return isalnum(c) || c == '_';} static inline bool isalnum_(char c) {return isalnum(c) || c == '_';}
@ -1034,4 +1035,4 @@ const tic_script_config* getJsScriptConfig()
s32 duk_timeout_check(void* udata){return 0;} s32 duk_timeout_check(void* udata){return 0;}
#endif /* defined(TIC_BUILD_WITH_JS) */ #endif /* defined(TIC_BUILD_WITH_JS) */