MCPcopy Create free account
hub / github.com/nodejs/node / checkStrictModeNumericLiteral

Function checkStrictModeNumericLiteral

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

Source from the content-addressed store, hash-verified

46671 }
46672 }
46673 function checkStrictModeNumericLiteral(node) {
46674 if (languageVersion < 1 /* ScriptTarget.ES5 */ && inStrictMode && node.numericLiteralFlags & 32 /* TokenFlags.Octal */) {
46675 file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));
46676 }
46677 }
46678 function checkStrictModePostfixUnaryExpression(node) {
46679 // Grammar checking
46680 // The identifier eval or arguments may not appear as the LeftHandSideExpression of an

Callers 1

bindWorkerFunction · 0.85

Calls 2

createDiagnosticForNodeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected