MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / aliasGlobalToImpl

Function aliasGlobalToImpl

Ports/JavaScriptPort/src/main/webapp/port.js:373–385  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

371 }
372}
373function aliasGlobalToImpl(symbol) {
374 if (typeof global[symbol] === "function") {
375 return false;
376 }
377 const impl = global[symbol + "__impl"];
378 if (typeof impl !== "function") {
379 return false;
380 }
381 global[symbol] = impl;
382 cn1RefreshAlias(symbol, impl);
383 emitDiagLine("PARPAR:DIAG:INIT:aliasGlobalToImpl=" + symbol);
384 return true;
385}
386
387function spawnVirtualCallback(receiver, methodId, args, pendingFlagKey) {
388 if (!receiver || !receiver.__class) {

Callers

nothing calls this directly

Calls 2

cn1RefreshAliasFunction · 0.85
emitDiagLineFunction · 0.85

Tested by

no test coverage detected