@@ -253,15 +253,15 @@ function fetchXHR(fetch, onsuccess, onerror, onprogress, onreadystatechange) {
253253 var dataPtr = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . requestData } } } >> 2 ] ;
254254 var dataLength = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . requestDataSize } } } >> 2 ] ;
255255
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 } } } ) ;
258258#if FETCH_SUPPORT_INDEXEDDB
259- var fetchAttrPersistFile = ! ! ( fetchAttributes & { { { cDefine ( ' EMSCRIPTEN_FETCH_PERSIST_FILE' ) } } } ) ;
259+ var fetchAttrPersistFile = ! ! ( fetchAttributes & { { { cDefs . EMSCRIPTEN_FETCH_PERSIST_FILE } } } ) ;
260260#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 } } } ) ;
265265
266266 var userNameStr = userName ? UTF8ToString ( userName ) : undefined ;
267267 var passwordStr = password ? UTF8ToString ( password ) : undefined ;
@@ -449,15 +449,15 @@ function startFetch(fetch, successcb, errorcb, progresscb, readystatechangecb) {
449449 var onprogress = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . onprogress } } } >> 2 ] ;
450450 var onreadystatechange = HEAPU32 [ fetch_attr + { { { C_STRUCTS . emscripten_fetch_attr_t . onreadystatechange } } } >> 2 ] ;
451451 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 } } } ) ;
454454#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 } } } ) ;
457457#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 } } } ) ;
461461
462462 function doCallback ( f ) {
463463 if ( fetchAttrSynchronous ) {
0 commit comments