File tree 2 files changed +5
-15
lines changed
2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -103,20 +103,6 @@ module.exports = function Array (_type, _length) {
103
103
writable : true ,
104
104
configurable : true
105
105
} ,
106
- // part of the "array-index" interface
107
- __get__ : {
108
- value : getter ,
109
- enumerable : true ,
110
- writable : true ,
111
- configurable : true
112
- } ,
113
- // part of the "array-index" interface
114
- __set__ : {
115
- value : setter ,
116
- enumerable : true ,
117
- writable : true ,
118
- configurable : true
119
- } ,
120
106
// "node-ffi" calls this when passed an array instance to an ffi'd function
121
107
ref : {
122
108
value : ref ,
@@ -133,6 +119,10 @@ module.exports = function Array (_type, _length) {
133
119
}
134
120
} )
135
121
122
+ // part of the "array-index" interface
123
+ ArrayType . prototype [ ArrayIndex . get ] = getter
124
+ ArrayType . prototype [ ArrayIndex . set ] = setter
125
+
136
126
// save down the "fixedLength" if specified. "ref-struct" needs this value
137
127
if ( fixedLength > 0 ) {
138
128
ArrayType . fixedLength = fixedLength
Original file line number Diff line number Diff line change 17
17
"test" : " node-gyp rebuild --directory test && mocha -gc --reporter spec"
18
18
},
19
19
"dependencies" : {
20
- "array-index" : " ~0.1. 1" ,
20
+ "array-index" : " 1" ,
21
21
"debug" : " 2" ,
22
22
"ref" : " 1"
23
23
},
You can’t perform that action at this time.
0 commit comments