File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ function checkSafeHeap() {
480
480
}
481
481
482
482
function getHeapOffset ( offset , type ) {
483
- if ( Runtime . getNativeFieldSize ( type ) > 4 && type == 'i64' ) {
483
+ if ( type == 'i64' ) {
484
484
// we emulate 64-bit integer values as 32 in asmjs-unknown-emscripten, but not double
485
485
type = 'i32' ;
486
486
}
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ function getNativeTypeSize(type) {
46
46
var Runtime = {
47
47
getNativeTypeSize : getNativeTypeSize ,
48
48
49
- //! Returns the size of a structure field, as C/C++ would have it (in 32-bit,
50
- //! for now) .
51
- //! @param type The type, by name.
49
+ //! TODO(sbc): This function is unused by emscripten but we can't be
50
+ //! sure there are not external users .
51
+ //! See: https://github.com/emscripten-core/emscripten/issues/15242
52
52
getNativeFieldSize : function ( type ) {
53
53
return Math . max ( getNativeTypeSize ( type ) , Runtime . QUANTUM_SIZE ) ;
54
54
} ,
You can’t perform that action at this time.
0 commit comments