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

Function finish

vm/ByteCodeTranslator/src/javascript/browser_bridge.js:1889–1893  ·  view source on GitHub ↗
(ok, msg)

Source from the content-addressed store, hash-verified

1887 return new Promise(function(resolve) {
1888 var done = false, cleaned = false, iframe = null;
1889 var finish = function(ok, msg) {
1890 if (done) { return; }
1891 done = true;
1892 resolve({ ok: ok ? 1 : 0, error: msg == null ? null : String(msg) });
1893 };
1894 var cleanup = function() {
1895 if (cleaned) { return; }
1896 cleaned = true;

Callers 2

browser_bridge.jsFile · 0.70
doPrintFunction · 0.70

Calls 3

settleFunction · 0.85
resolveFunction · 0.50
StringClass · 0.50

Tested by

no test coverage detected