fix crash on android x86

This commit is contained in:
ekibun
2020-12-02 11:39:21 +08:00
parent ee934184ac
commit 348848837a
9 changed files with 57 additions and 53 deletions

View File

@@ -3,7 +3,7 @@
* @Author: ekibun
* @Date: 2020-09-06 18:32:45
* @LastEditors: ekibun
* @LastEditTime: 2020-10-07 00:03:41
* @LastEditTime: 2020-12-02 11:11:42
*/
#include "ffi.h"
#include <functional>
@@ -197,7 +197,6 @@ extern "C"
DLLEXPORT const char *jsToCString(JSContext *ctx, JSValueConst *val)
{
JS_ResetStackTop(JS_GetRuntime(ctx));
return JS_ToCString(ctx, *val);
}