Skip to content

Commit c9f8565

Browse files
committed
Remove unnecessary use of Runtime.getNativeFieldSize. NFC
1 parent bd2193b commit c9f8565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parseTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ function checkSafeHeap() {
480480
}
481481

482482
function getHeapOffset(offset, type) {
483-
if (Runtime.getNativeFieldSize(type) > 4 && type == 'i64') {
483+
if (type == 'i64') {
484484
// we emulate 64-bit integer values as 32 in asmjs-unknown-emscripten, but not double
485485
type = 'i32';
486486
}

0 commit comments

Comments
 (0)