Examples: replace Promise.finally()
@@ -185,8 +185,10 @@ THREE.BasisTextureLoader.prototype = Object.assign( Object.create( THREE.Loader.
} );
+ // Note: replaced '.finally()' with '.catch().then()' block - iOS 11 support (#19416)
texturePending
- .finally( () => {
+ .catch( () => true )
+ .then( () => {
if ( worker && taskID ) {
@@ -197,8 +197,10 @@ THREE.DRACOLoader.prototype = Object.assign( Object.create( THREE.Loader.prototy
.then( ( message ) => this._createGeometry( message.geometry ) );
// Remove task from the task list.
geometryPending
@@ -199,8 +199,10 @@ BasisTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ),
@@ -204,8 +204,10 @@ DRACOLoader.prototype = Object.assign( Object.create( Loader.prototype ), {