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

Function getGlobalPromiseConstructorSymbol

test/fixtures/snapshot/typescript.js:60723–60725  ·  view source on GitHub ↗
(reportErrors)

Source from the content-addressed store, hash-verified

60721 return (deferredGlobalPromiseLikeType || (deferredGlobalPromiseLikeType = getGlobalType("PromiseLike", /*arity*/ 1, reportErrors))) || emptyGenericType;
60722 }
60723 function getGlobalPromiseConstructorSymbol(reportErrors) {
60724 return deferredGlobalPromiseConstructorSymbol || (deferredGlobalPromiseConstructorSymbol = getGlobalValueSymbol("Promise", reportErrors));
60725 }
60726 function getGlobalPromiseConstructorLikeType(reportErrors) {
60727 return (deferredGlobalPromiseConstructorLikeType || (deferredGlobalPromiseConstructorLikeType = getGlobalType("PromiseConstructorLike", /*arity*/ 0, reportErrors))) || emptyObjectType;
60728 }

Callers 3

createPromiseReturnTypeFunction · 0.85

Calls 1

getGlobalValueSymbolFunction · 0.85

Tested by

no test coverage detected