We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49e8e4 commit 6da4424Copy full SHA for 6da4424
1 file changed
lib/ffi.js
@@ -1,7 +1,6 @@
1
'use strict';
2
3
const {
4
- ObjectDefineProperty,
5
ObjectFreeze,
6
ObjectPrototypeToString,
7
SymbolDispose,
@@ -55,14 +54,9 @@ const {
55
54
toArrayBuffer,
56
} = internalBinding('ffi');
57
58
-ObjectDefineProperty(DynamicLibrary.prototype, SymbolDispose, {
59
- __proto__: null,
60
- configurable: true,
61
- writable: true,
62
- value: function dispose() {
63
- this.close();
64
- },
65
-});
+DynamicLibrary.prototype[SymbolDispose] = function() {
+ this.close();
+};
66
67
function checkFFIPermission() {
68
if (!permission.isEnabled() || permission.has('ffi')) {
0 commit comments