@@ -215,9 +215,7 @@ function locateFile(path) {
215
215
}
216
216
217
217
// Hooks that are implemented differently in different runtime environments.
218
- var read_ ,
219
- readAsync,
220
- readBinary ;
218
+ var readAsync , readBinary ;
221
219
222
220
#if ENVIRONMENT_MAY_BE_NODE
223
221
if ( ENVIRONMENT_IS_NODE ) {
@@ -311,10 +309,6 @@ if (ENVIRONMENT_IS_SHELL) {
311
309
#endif
312
310
313
311
#if ENVIRONMENT_MAY_BE_SHELL
314
- if ( typeof read != 'undefined' ) {
315
- read_ = read ;
316
- }
317
-
318
312
readBinary = ( f ) = > {
319
313
if ( typeof readbuffer == 'function' ) {
320
314
return new Uint8Array ( readbuffer ( f ) ) ;
@@ -492,13 +486,12 @@ assert(typeof Module['memoryInitializerPrefixURL'] == 'undefined', 'Module.memor
492
486
assert ( typeof Module [ 'pthreadMainPrefixURL' ] == 'undefined' , 'Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead' ) ;
493
487
assert ( typeof Module [ 'cdInitializerPrefixURL' ] == 'undefined' , 'Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead' ) ;
494
488
assert ( typeof Module [ 'filePackagePrefixURL' ] == 'undefined' , 'Module.filePackagePrefixURL option was removed, use Module.locateFile instead' ) ;
495
- assert ( typeof Module [ 'read' ] == 'undefined' , 'Module.read option was removed (modify read_ in JS) ' ) ;
489
+ assert ( typeof Module [ 'read' ] == 'undefined' , 'Module.read option was removed' ) ;
496
490
assert ( typeof Module [ 'readAsync' ] == 'undefined' , 'Module.readAsync option was removed (modify readAsync in JS)' ) ;
497
491
assert ( typeof Module [ 'readBinary' ] == 'undefined' , 'Module.readBinary option was removed (modify readBinary in JS)' ) ;
498
492
assert ( typeof Module [ 'setWindowTitle' ] == 'undefined' , 'Module.setWindowTitle option was removed (modify emscripten_set_window_title in JS)' ) ;
499
493
assert ( typeof Module [ 'TOTAL_MEMORY' ] == 'undefined' , 'Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY' ) ;
500
494
{ { { makeRemovedModuleAPIAssert ( 'asm' , 'wasmExports' , false ) } } }
501
- { { { makeRemovedModuleAPIAssert ( 'read' , 'read_' ) } } }
502
495
{ { { makeRemovedModuleAPIAssert ( 'readAsync' ) } } }
503
496
{ { { makeRemovedModuleAPIAssert ( 'readBinary' ) } } }
504
497
{ { { makeRemovedModuleAPIAssert ( 'setWindowTitle' ) } } }
0 commit comments