MCPcopy Index your code
hub / github.com/nodejs/node / getStrictModeEvalOrArgumentsMessage

Function getStrictModeEvalOrArgumentsMessage

test/fixtures/snapshot/typescript.js:46632–46642  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

46630 }
46631 }
46632 function getStrictModeEvalOrArgumentsMessage(node) {
46633 // Provide specialized messages to help the user understand why we think they're in
46634 // strict mode.
46635 if (ts.getContainingClass(node)) {
46636 return ts.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;
46637 }
46638 if (file.externalModuleIndicator) {
46639 return ts.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;
46640 }
46641 return ts.Diagnostics.Invalid_use_of_0_in_strict_mode;
46642 }
46643 function checkStrictModeFunctionName(node) {
46644 if (inStrictMode) {
46645 // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a strict mode FunctionDeclaration or FunctionExpression (13.1))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected