UNPKG

reserved

Version:

Reserved words that may not be used as variables, functions, methods, or object identifiers, since ECMAScript specifies special behavior for them.

97 lines (94 loc) 1.25 kB
/*! * reserved <https://github.com/jonschlinkert/reserved * * Copyright (c) 2014 Jon Schlinkert, contributors * Licensed under the MIT License (MIT) */ exports.reserved = [ 'abstract', 'arguments', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'debugger', 'default', 'delete', 'do', 'double', 'else', 'enum', 'eval', 'export', 'extends', 'false', 'final', 'finally', 'float', 'for', 'function', 'goto', 'if', 'implements', 'import', 'in', 'instanceof', 'int', 'interface', 'let', 'long', 'native', 'new', 'null', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'true', 'try', 'typeof', 'var', 'void', 'volatile', 'while', 'with', 'yield' ]; exports.builtins = [ 'Array', 'Date', 'eval', 'function', 'hasOwnProperty', 'Infinity', 'isFinite', 'isNaN', 'isPrototypeOf', 'length', 'Math', 'name', 'NaN', 'Number', 'Object', 'prototype', 'String', 'toString', 'undefined', 'valueOf' ]; module.exports = exports.reserved.concat(exports.builtins);