@@ -94,23 +94,23 @@ export const LibraryManager = {
94
94
if ( FILESYSTEM ) {
95
95
libraries . push ( 'library_fs_shared.js' ) ;
96
96
if ( WASMFS ) {
97
- libraries = libraries . concat ( [
97
+ libraries . push (
98
98
'library_wasmfs.js' ,
99
99
'library_wasmfs_js_file.js' ,
100
100
'library_wasmfs_jsimpl.js' ,
101
101
'library_wasmfs_fetch.js' ,
102
102
'library_wasmfs_node.js' ,
103
103
'library_wasmfs_opfs.js' ,
104
- ] ) ;
104
+ ) ;
105
105
} else {
106
106
// Core filesystem libraries (always linked against, unless -sFILESYSTEM=0 is specified)
107
- libraries = libraries . concat ( [
107
+ libraries . push (
108
108
'library_fs.js' ,
109
109
'library_memfs.js' ,
110
110
'library_tty.js' ,
111
111
'library_pipefs.js' , // ok to include it by default since it's only used if the syscall is used
112
112
'library_sockfs.js' , // ok to include it by default since it's only used if the syscall is used
113
- ] ) ;
113
+ ) ;
114
114
115
115
if ( NODERAWFS ) {
116
116
// NODERAWFS requires NODEFS
@@ -126,7 +126,7 @@ export const LibraryManager = {
126
126
127
127
// Additional JS libraries (without AUTO_JS_LIBRARIES, link to these explicitly via -lxxx.js)
128
128
if ( AUTO_JS_LIBRARIES ) {
129
- libraries = libraries . concat ( [
129
+ libraries . push (
130
130
'library_webgl.js' ,
131
131
'library_html5_webgl.js' ,
132
132
'library_openal.js' ,
@@ -137,7 +137,7 @@ export const LibraryManager = {
137
137
'library_glew.js' ,
138
138
'library_idbstore.js' ,
139
139
'library_async.js' ,
140
- ] ) ;
140
+ ) ;
141
141
if ( USE_SDL != 2 ) {
142
142
libraries . push ( 'library_sdl.js' ) ;
143
143
}
@@ -206,7 +206,7 @@ export const LibraryManager = {
206
206
// These must be added last after all Emscripten-provided system libraries
207
207
// above, so that users can override built-in JS library symbols in their
208
208
// own code.
209
- libraries = libraries . concat ( JS_LIBRARIES ) ;
209
+ libraries . push ( ... JS_LIBRARIES ) ;
210
210
211
211
// Deduplicate libraries to avoid processing any library file multiple times
212
212
libraries = libraries . filter ( ( item , pos ) => libraries . indexOf ( item ) == pos ) ;
@@ -407,7 +407,7 @@ function exportRuntime() {
407
407
] ;
408
408
409
409
if ( PTHREADS && ALLOW_MEMORY_GROWTH ) {
410
- runtimeElements = runtimeElements . concat ( [
410
+ runtimeElements . push (
411
411
'GROWABLE_HEAP_I8' ,
412
412
'GROWABLE_HEAP_U8' ,
413
413
'GROWABLE_HEAP_I16' ,
@@ -416,7 +416,7 @@ function exportRuntime() {
416
416
'GROWABLE_HEAP_U32' ,
417
417
'GROWABLE_HEAP_F32' ,
418
418
'GROWABLE_HEAP_F64' ,
419
- ] ) ;
419
+ ) ;
420
420
}
421
421
if ( USE_OFFSET_CONVERTER ) {
422
422
runtimeElements . push ( 'WasmOffsetConverter' ) ;
0 commit comments