skia2/experimental/wasm-skp-debugger/tests/debuggerinit.js
Nathaniel Nifong 6c6592c338 Upgrade to emscripten 1.39.16
Change-Id: I9717aee8b94fefe77c6edc2566faea68e1fac430
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/291337
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Nathaniel Nifong <nifong@google.com>
2020-05-21 18:31:21 +00:00

15 lines
368 B
JavaScript

jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
let Debugger = null;
const LoadDebugger = new Promise(function(resolve, reject) {
if (Debugger) {
resolve();
} else {
DebuggerInit({
locateFile: (file) => '/debugger/bin/'+file,
}).then((_Debugger) => {
Debugger = _Debugger;
resolve();
});
}
});