File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,9 @@ function postInstantiate(extendedExports, instance) {
180
180
if ( info & STATICARRAY ) {
181
181
result = buf ;
182
182
} else {
183
+ __pin ( buf ) ;
183
184
const arr = __new ( info & ARRAY ? ARRAY_SIZE : ARRAYBUFFERVIEW_SIZE , id ) ;
185
+ __unpin ( buf ) ;
184
186
const U32 = new Uint32Array ( memory . buffer ) ;
185
187
U32 [ arr + ARRAYBUFFERVIEW_BUFFER_OFFSET >>> 2 ] = buf ;
186
188
U32 [ arr + ARRAYBUFFERVIEW_DATASTART_OFFSET >>> 2 ] = buf ;
Original file line number Diff line number Diff line change @@ -227,8 +227,12 @@ var loader = (function(exports) {
227
227
if ( info & STATICARRAY ) {
228
228
result = buf ;
229
229
} else {
230
+ __pin ( buf ) ;
231
+
230
232
const arr = __new ( info & ARRAY ? ARRAY_SIZE : ARRAYBUFFERVIEW_SIZE , id ) ;
231
233
234
+ __unpin ( buf ) ;
235
+
232
236
const U32 = new Uint32Array ( memory . buffer ) ;
233
237
U32 [ arr + ARRAYBUFFERVIEW_BUFFER_OFFSET >>> 2 ] = buf ;
234
238
U32 [ arr + ARRAYBUFFERVIEW_DATASTART_OFFSET >>> 2 ] = buf ;
You can’t perform that action at this time.
0 commit comments