@@ -253,15 +253,15 @@ function fetchXHR(fetch, onsuccess, onerror, onprogress, onreadystatechange) {
253
253
var dataPtr = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . requestData } } } >> 2 ] ;
254
254
var dataLength = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . requestDataSize } } } >> 2 ] ;
255
255
256
- var fetchAttrLoadToMemory = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_LOAD_TO_MEMORY' ) } } } ) ;
257
- var fetchAttrStreamData = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_STREAM_DATA' ) } } } ) ;
256
+ var fetchAttrLoadToMemory = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_LOAD_TO_MEMORY } } } ) ;
257
+ var fetchAttrStreamData = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_STREAM_DATA } } } ) ;
258
258
#if FETCH_SUPPORT_INDEXEDDB
259
- var fetchAttrPersistFile = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_PERSIST_FILE' ) } } } ) ;
259
+ var fetchAttrPersistFile = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_PERSIST_FILE } } } ) ;
260
260
#endif
261
- var fetchAttrAppend = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_APPEND' ) } } } ) ;
262
- var fetchAttrReplace = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_REPLACE' ) } } } ) ;
263
- var fetchAttrSynchronous = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_SYNCHRONOUS' ) } } } ) ;
264
- var fetchAttrWaitable = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_WAITABLE' ) } } } ) ;
261
+ var fetchAttrAppend = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_APPEND } } } ) ;
262
+ var fetchAttrReplace = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_REPLACE } } } ) ;
263
+ var fetchAttrSynchronous = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_SYNCHRONOUS } } } ) ;
264
+ var fetchAttrWaitable = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_WAITABLE } } } ) ;
265
265
266
266
var userNameStr = userName ? UTF8ToString ( userName ) : undefined ;
267
267
var passwordStr = password ? UTF8ToString ( password ) : undefined ;
@@ -449,15 +449,15 @@ function startFetch(fetch, successcb, errorcb, progresscb, readystatechangecb) {
449
449
var onprogress = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . onprogress } } } >> 2 ] ;
450
450
var onreadystatechange = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . onreadystatechange } } } >> 2 ] ;
451
451
var fetchAttributes = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . attributes } } } >> 2 ] ;
452
- var fetchAttrLoadToMemory = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_LOAD_TO_MEMORY' ) } } } ) ;
453
- var fetchAttrStreamData = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_STREAM_DATA' ) } } } ) ;
452
+ var fetchAttrLoadToMemory = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_LOAD_TO_MEMORY } } } ) ;
453
+ var fetchAttrStreamData = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_STREAM_DATA } } } ) ;
454
454
#if FETCH_SUPPORT_INDEXEDDB
455
- var fetchAttrPersistFile = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_PERSIST_FILE' ) } } } ) ;
456
- var fetchAttrNoDownload = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_NO_DOWNLOAD' ) } } } ) ;
455
+ var fetchAttrPersistFile = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_PERSIST_FILE } } } ) ;
456
+ var fetchAttrNoDownload = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_NO_DOWNLOAD } } } ) ;
457
457
#endif
458
- var fetchAttrAppend = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_APPEND' ) } } } ) ;
459
- var fetchAttrReplace = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_REPLACE' ) } } } ) ;
460
- var fetchAttrSynchronous = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_SYNCHRONOUS' ) } } } ) ;
458
+ var fetchAttrAppend = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_APPEND } } } ) ;
459
+ var fetchAttrReplace = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_REPLACE } } } ) ;
460
+ var fetchAttrSynchronous = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_SYNCHRONOUS } } } ) ;
461
461
462
462
function doCallback ( f ) {
463
463
if ( fetchAttrSynchronous ) {
0 commit comments