MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / isStrictModeReservedWord

Function isStrictModeReservedWord

scripts/libs/esprima.js:286–301  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

284 // 11.6.2.2 Future Reserved Words
285
286 function isStrictModeReservedWord(id) {
287 switch (id) {
288 case 'implements':
289 case 'interface':
290 case 'package':
291 case 'private':
292 case 'protected':
293 case 'public':
294 case 'static':
295 case 'yield':
296 case 'let':
297 return true;
298 default:
299 return false;
300 }
301 }
302
303 function isRestrictedWord(id) {
304 return id === 'eval' || id === 'arguments';

Callers 6

advanceFunction · 0.85
unexpectedTokenErrorFunction · 0.85
parseVariableIdentifierFunction · 0.85
validateParamFunction · 0.85
parseFunctionDeclarationFunction · 0.85
parseFunctionExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected