Commit c78b309
Set result pointer before clearing it. (#79)
While working with babylon we encountered issue when calling
`env.drop_wrapped` calls `napi_remove_wrap` which is implemented
[here](https://github.com/BabylonJS/JsRuntimeHost/blob/397c12a0f17111715177cb59364361b21905f3de/Core/Node-API/Source/js_native_api_javascriptcore.cc#L1778)
for Javascriptcore
It should set result to the wrapped data pointer, but that
implementation will always set it to null.
This change ensures that the result pointer is correctly set to the
wrapped data pointer before clearing it.
---------
Co-authored-by: Gary Hsu <[email protected]>1 parent 397c12a commit c78b309
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1784 | 1784 | | |
1785 | 1785 | | |
1786 | 1786 | | |
1787 | | - | |
1788 | 1787 | | |
1789 | 1788 | | |
| 1789 | + | |
| 1790 | + | |
1790 | 1791 | | |
1791 | 1792 | | |
1792 | 1793 | | |
| |||
0 commit comments