commit | 275eaff3be4b371983451f3e15c4d757e4c6c675 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Fri Jan 04 14:38:29 2019 -0500 |
committer | Kevin Lubick <kjlubick@google.com> | Fri Jan 04 19:58:22 2019 +0000 |
tree | 984378ab11ff813e414020d3aa3cbd7f8e7e415f | |
parent | 5a0338c133be784e7f850a976ff9f4df18bbdb68 [diff] [blame] |
[pathkit] Add .ready() to initialize See https://github.com/kripken/emscripten/issues/5820 and https://skia-review.googlesource.com/c/skia/+/181177 for more context. (Problem was discovered in CanvasKit, and this ports the same fix to PathKit). Bug: skia: Change-Id: Ic8b2fb399210631a571595a5b3d11d1736c00def Reviewed-on: https://skia-review.googlesource.com/c/181178 Reviewed-by: Joe Gregorio <jcgregorio@google.com>
diff --git a/modules/pathkit/npm-wasm/example.html b/modules/pathkit/npm-wasm/example.html index 488f6ec..d7c2469 100644 --- a/modules/pathkit/npm-wasm/example.html +++ b/modules/pathkit/npm-wasm/example.html
@@ -53,7 +53,7 @@ PathKitInit({ locateFile: (file) => '/node_modules/pathkit-wasm/bin/'+file, - }).then((PathKit) => { + }).ready().then((PathKit) => { window.PathKit = PathKit; OutputsExample(PathKit); Path2DExample(PathKit);