-
-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreationContext is no longer supported #858
Comments
Same issue for us after updating to Electron 20.x
|
I think the Can anyone point to sources regarding Edit: I also don't know if better-sqlite3 is affected by this https://www.electronjs.org/blog/v8-memory-cage ? E.g. if SQLite allocates memory for something like a BLOB, how is that transferred to the Node.js world? From what I can tell the data is already copied, so this should be correct? better-sqlite3/src/util/data.lzz Lines 53 to 58 in 6da9e56
|
Regarding |
It seems that there may also be an issue with the latest changes in the v8-callbacks.h header files when explicitly calling
to
With some quick and dirty changes to the better-sqlite3 code by commenting out line 108 of better-sqlite3.cpp
and changing the line 1952 in better-sqlite3.cpp from
to
I was at least able to compile against electron 20.0.0 after also forcing rebuild to use node-gyp 8.4.1. Edit: Just found my changes to better-sqlite3.cpp partially correspond to signalapp/better-sqlite3@65d5e33 |
For a few versions of Electron it has been warning that the CreationContext was depreciate (or more correctly depreciated in v8). With electron 20, the bundled version of tooling no longer supports CreationContext at all. This is what happens when you try to compile:
`Preparing native dependencies: 0 / 1./src/util/macros.lzz:157:21: error: no member named 'AccessorSignature' in namespace 'v8'
v8::AccessorSignature::New(isolate, recv)
~~~~^
⠸ Preparing native dependencies: 0 / 1./src/objects/database.lzz:180:21: warning: variable 'status' set but not used [-Wunused-but-set-variable]
int status = sqlite3_db_config(db_handle, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, 1, NULL);
^
./src/util/binder.lzz:37:51: error: no member named 'CreationContext' in 'v8::Object'
v8::Localv8::Context ctx = obj->CreationContext();
~~~~~^
1 warning and 2 errors generated.
`
Environment:
Building an Electron app using Electron 20 on macOS ARM.
The text was updated successfully, but these errors were encountered: