MCPcopy Create free account
hub / github.com/dchester/jsonpath / isStrictModeReservedWord

Function isStrictModeReservedWord

jsonpath.js:283–298  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

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

Callers 5

isKeywordFunction · 0.85
throwUnexpectedFunction · 0.85
parseParamsFunction · 0.85
parseFunctionDeclarationFunction · 0.85
parseFunctionExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected