Use peg.util.reservedWords

master
Futago-za Ryuu 7 years ago
parent 01555ebbac
commit b31009f73d

@ -310,44 +310,7 @@ describe( "PEG.js API", function () {
describe( "reserved words", function () {
const RESERVED_WORDS = [
"break",
"case",
"catch",
"class",
"const",
"continue",
"debugger",
"default",
"delete",
"do",
"else",
"enum",
"export",
"extends",
"false",
"finally",
"for",
"function",
"if",
"import",
"instanceof",
"in",
"new",
"null",
"return",
"super",
"switch",
"this",
"throw",
"true",
"try",
"typeof",
"var",
"void",
"while",
"with"
];
const RESERVED_WORDS = peg.util.reservedWords;
describe( "throws an exception on reserved JS words used as labels", function () {

Loading…
Cancel
Save