koffi 2.5.0-beta.1 → 2.5.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/CHANGELOG.md +13 -0
- package/build/2.5.0/koffi_darwin_arm64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_darwin_x64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_freebsd_arm64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_freebsd_ia32/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_freebsd_x64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_linux_arm32hf/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_linux_arm64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_linux_ia32/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_linux_riscv64hf64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_linux_x64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_openbsd_ia32/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_openbsd_x64/koffi.node +0 -0
- package/build/2.5.0/koffi_win32_arm64/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_ia32/koffi.node +0 -0
- package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_x64/koffi.node +0 -0
- package/doc/functions.md +1 -1
- package/doc/index.rst +1 -0
- package/doc/parameters.md +1 -0
- package/doc/unions.md +187 -0
- package/package.json +2 -2
- package/src/koffi/src/call.cc +7 -2
- package/src/koffi/src/ffi.cc +8 -8
- package/src/koffi/src/util.hh +1 -0
- package/vendor/node-addon-api/CHANGELOG.md +31 -0
- package/vendor/node-addon-api/README.md +3 -2
- package/vendor/node-addon-api/doc/async_worker.md +1 -0
- package/vendor/node-addon-api/doc/creating_a_release.md +21 -0
- package/vendor/node-addon-api/doc/value.md +7 -0
- package/vendor/node-addon-api/napi-inl.h +23 -7
- package/vendor/node-addon-api/package.json +9 -1
- package/vendor/node-addon-api/test/async_progress_queue_worker.cc +155 -0
- package/vendor/node-addon-api/test/async_progress_queue_worker.js +134 -0
- package/vendor/node-addon-api/test/async_progress_worker.cc +155 -0
- package/vendor/node-addon-api/test/async_progress_worker.js +134 -0
- package/vendor/node-addon-api/test/common/index.js +45 -0
- package/vendor/node-addon-api/test/objectwrap.js +9 -0
- package/build/2.5.0-beta.1/koffi_darwin_arm64/koffi.node +0 -0
- package/build/2.5.0-beta.1/koffi_win32_arm64/koffi.node +0 -0
- /package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_arm64/koffi.exp +0 -0
- /package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_arm64/koffi.lib +0 -0
- /package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_ia32/koffi.exp +0 -0
- /package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_ia32/koffi.lib +0 -0
- /package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_x64/koffi.exp +0 -0
- /package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_x64/koffi.lib +0 -0
- /package/build/{2.5.0-beta.1 → 2.5.0}/koffi_win32_x64/koffi.pdb +0 -0
|
@@ -24,6 +24,9 @@ async function test (binding) {
|
|
|
24
24
|
obj.testSetter = 'instance getter 2';
|
|
25
25
|
assert.strictEqual(obj.testGetter, 'instance getter 2');
|
|
26
26
|
assert.strictEqual(obj.testGetterT, 'instance getter 2');
|
|
27
|
+
|
|
28
|
+
assert.throws(() => clazz.prototype.testGetter, /Invalid argument/);
|
|
29
|
+
assert.throws(() => clazz.prototype.testGetterT, /Invalid argument/);
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
// read write-only
|
|
@@ -61,6 +64,9 @@ async function test (binding) {
|
|
|
61
64
|
|
|
62
65
|
obj.testGetSetT = 'instance getset 4';
|
|
63
66
|
assert.strictEqual(obj.testGetSetT, 'instance getset 4');
|
|
67
|
+
|
|
68
|
+
assert.throws(() => { clazz.prototype.testGetSet = 'instance getset'; }, /Invalid argument/);
|
|
69
|
+
assert.throws(() => { clazz.prototype.testGetSetT = 'instance getset'; }, /Invalid argument/);
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
// rw symbol
|
|
@@ -98,6 +104,9 @@ async function test (binding) {
|
|
|
98
104
|
assert.strictEqual(obj.testMethodT(), 'method<>(const char*)');
|
|
99
105
|
obj[clazz.kTestVoidMethodTInternal]('method<>(Symbol)');
|
|
100
106
|
assert.strictEqual(obj[clazz.kTestMethodTInternal](), 'method<>(Symbol)');
|
|
107
|
+
assert.throws(() => clazz.prototype.testMethod('method'));
|
|
108
|
+
assert.throws(() => clazz.prototype.testMethodT());
|
|
109
|
+
assert.throws(() => clazz.prototype.testVoidMethodT('method<>(const char*)'));
|
|
101
110
|
};
|
|
102
111
|
|
|
103
112
|
const testEnumerables = (obj, clazz) => {
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|