better-sqlite3-multiple-ciphers 12.6.2 → 12.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/deps/sqlite3/sqlite3.c +513 -215
- package/deps/sqlite3/sqlite3.h +8 -8
- package/deps/update-sqlite3mc.sh +2 -2
- package/package.json +1 -1
- package/src/objects/database.cpp +457 -457
- package/src/objects/statement.cpp +1 -1
- package/src/util/macros.cpp +13 -0
|
@@ -378,6 +378,6 @@ NODE_METHOD(Statement::JS_columns) {
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
NODE_GETTER(Statement::JS_busy) {
|
|
381
|
-
Statement* stmt = Unwrap<Statement>(info
|
|
381
|
+
Statement* stmt = Unwrap<Statement>(PROPERTY_HOLDER(info));
|
|
382
382
|
info.GetReturnValue().Set(stmt->alive && stmt->locked);
|
|
383
383
|
}
|
package/src/util/macros.cpp
CHANGED
|
@@ -11,6 +11,19 @@
|
|
|
11
11
|
#define GET_PROTOTYPE(obj) ((obj)->GetPrototype())
|
|
12
12
|
#endif
|
|
13
13
|
|
|
14
|
+
// PropertyCallbackInfo::This() and Holder() were removed; use HolderV2().
|
|
15
|
+
// Tracking bug for V8 API removals: http://crbug.com/333672197
|
|
16
|
+
// V8 head has since restored Holder() and deprecated HolderV2():
|
|
17
|
+
// https://chromium.googlesource.com/v8/v8/+/main/include/v8-function-callback.h
|
|
18
|
+
// V8_INLINE Local<Object> Holder() const;
|
|
19
|
+
// V8_DEPRECATE_SOON("Use Holder().")
|
|
20
|
+
// V8_INLINE Local<Object> HolderV2() const;
|
|
21
|
+
#if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >= 13
|
|
22
|
+
#define PROPERTY_HOLDER(info) (info).HolderV2()
|
|
23
|
+
#else
|
|
24
|
+
#define PROPERTY_HOLDER(info) (info).This()
|
|
25
|
+
#endif
|
|
26
|
+
|
|
14
27
|
#define EasyIsolate v8::Isolate* isolate = v8::Isolate::GetCurrent()
|
|
15
28
|
#define OnlyIsolate info.GetIsolate()
|
|
16
29
|
#define OnlyContext isolate->GetCurrentContext()
|