MCPcopy Index your code
hub / github.com/reactjs/react-rails / isStrictModeReservedWord

Function isStrictModeReservedWord

lib/assets/javascripts/JSXTransformer.js:2714–2729  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

2712 }
2713
2714 function isStrictModeReservedWord(id) {
2715 switch (id) {
2716 case 'implements':
2717 case 'interface':
2718 case 'package':
2719 case 'private':
2720 case 'protected':
2721 case 'public':
2722 case 'static':
2723 case 'yield':
2724 case 'let':
2725 return true;
2726 default:
2727 return false;
2728 }
2729 }
2730
2731 function isRestrictedWord(id) {
2732 return id === 'eval' || id === 'arguments';

Callers 5

isKeywordFunction · 0.85
throwUnexpectedFunction · 0.85
validateParamFunction · 0.85
parseFunctionDeclarationFunction · 0.85
parseFunctionExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected