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

Function isES2015OrLaterConstructorName

test/fixtures/snapshot/typescript.js:50267–50278  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

50265 return false;
50266 }
50267 function isES2015OrLaterConstructorName(n) {
50268 switch (n) {
50269 case "Promise":
50270 case "Symbol":
50271 case "Map":
50272 case "WeakMap":
50273 case "Set":
50274 case "WeakSet":
50275 return true;
50276 }
50277 return false;
50278 }
50279 function checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation, name, meaning) {
50280 if (meaning & (111551 /* SymbolFlags.Value */ & ~1024 /* SymbolFlags.NamespaceModule */ & ~788968 /* SymbolFlags.Type */)) {
50281 var symbol = resolveSymbol(resolveName(errorLocation, name, 1024 /* SymbolFlags.NamespaceModule */ & ~111551 /* SymbolFlags.Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));

Calls

no outgoing calls

Tested by

no test coverage detected