summaryrefslogtreecommitdiff
path: root/ext/ffi/00_ffi.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi/00_ffi.js')
-rw-r--r--ext/ffi/00_ffi.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ffi/00_ffi.js b/ext/ffi/00_ffi.js
index 1475f8d3f..d3b07dc37 100644
--- a/ext/ffi/00_ffi.js
+++ b/ext/ffi/00_ffi.js
@@ -484,10 +484,11 @@ class DynamicLibrary {
this.symbols,
symbol,
{
+ __proto__: null,
configurable: false,
enumerable: true,
- value,
writable: false,
+ value,
},
);
continue;
@@ -504,8 +505,10 @@ class DynamicLibrary {
this.symbols,
symbol,
{
+ __proto__: null,
configurable: false,
enumerable: true,
+ writable: false,
value: (...parameters) => {
if (isStructResult) {
const buffer = new Uint8Array(structSize);
@@ -527,7 +530,6 @@ class DynamicLibrary {
);
}
},
- writable: false,
},
);
}