diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-09-06 19:52:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 12:52:59 +0200 |
commit | f0a3d206422af3177e0f36ed22802c1ccc6f7654 (patch) | |
tree | 57ad718cc47b7b98c0bbd869d6c070adee3bf30a /ext/ffi | |
parent | 8ef08f1d294dbe7e3771202084ecbede73ca28aa (diff) |
fix(runtime): use more null proto objects again (#25040)
proceed with #23921
This PR is a preparation for
https://github.com/denoland/deno_lint/pull/1307
---------
Signed-off-by: Kenta Moriuchi <moriken@kimamass.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
Diffstat (limited to 'ext/ffi')
-rw-r--r-- | ext/ffi/00_ffi.js | 6 |
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, }, ); } |