[wasm] Remove the print(returnval) and use it to fail shaper

This commit is contained in:
Behdad Esfahbod 2023-02-23 10:37:44 -07:00
parent 11fc83c0ba
commit bb8a04cbad
2 changed files with 1 additions and 9 deletions

View File

@ -68,7 +68,6 @@ And now we can run it!
```
% hb-shape test-wasm.ttf abc --shapers=wasm
1
[cent=0|sterling=1|fraction=2]
```
@ -114,6 +113,5 @@ With this compiled into a WASM module, and installed into our font again, finall
```
$ hb-shape test-wasm.ttf abc
Hello from Rust!
1
[cent=0|sterling=1|fraction=2]
```

View File

@ -213,13 +213,7 @@ _hb_wasm_shape (hb_shape_plan_t *shape_plan,
goto fail;
}
printf ("%i\n", results[0].of.i32);
if (!face_data)
goto fail;
if (0)
if (!results[0].of.i32)
{
fail:
ret = false;