mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 21:37:24 +00:00
fix crash when encoding Error object
This commit is contained in:
@@ -8,10 +8,13 @@ sed 's/\#include \"quickjs\/quickjs.h\"/\#include \"quickjs.h\"/g' ../cxx/ffi.h
|
||||
cp ../cxx/ffi.cpp ./cxx/ffi.cpp
|
||||
|
||||
cp ../cxx/quickjs/*.h ./cxx/
|
||||
cp ../cxx/quickjs/*.c ./cxx/
|
||||
cp ../cxx/quickjs/cutils.c ./cxx/
|
||||
cp ../cxx/quickjs/libregexp.c ./cxx/
|
||||
cp ../cxx/quickjs/libunicode.c ./cxx/
|
||||
|
||||
quickjs_version=$(cat ../cxx/quickjs/VERSION)
|
||||
|
||||
sed '1i\
|
||||
\#define CONFIG_VERSION \"'$quickjs_version'\"\
|
||||
\#define DUMP_LEAKS 1\
|
||||
' ../cxx/quickjs/quickjs.c > ./cxx/quickjs.c
|
Reference in New Issue
Block a user