Skip to content

Commit f9ba356

Browse files
committed
Move getNativeTypeSize library function as legacy. NFC
This function is not used anywhere in emscripten anymore.
1 parent b4ffae4 commit f9ba356

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/libcore.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,9 +2267,6 @@ addToLibrary({
22672267
}
22682268
},
22692269

2270-
$getNativeTypeSize__deps: ['$POINTER_SIZE'],
2271-
$getNativeTypeSize: {{{ getNativeTypeSize }}},
2272-
22732270
$wasmTable__docs: '/** @type {WebAssembly.Table} */',
22742271
#if RELOCATABLE
22752272
// In RELOCATABLE mode we create the table in JS.

src/lib/liblegacy.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ legacyFuncs = {
122122
// (This was a mistake in the original implementation, and kept
123123
// to avoid breakage.)
124124
$jstoi_s: 'Number',
125+
126+
$getNativeTypeSize__deps: ['$POINTER_SIZE'],
127+
$getNativeTypeSize: {{{ getNativeTypeSize }}},
125128
};
126129

127130
if (WARN_DEPRECATED && !INCLUDE_FULL_LIBRARY) {

0 commit comments

Comments
 (0)