@@ -10,7 +10,6 @@ import {
1010 waitForEvent ,
1111 didCancel ,
1212} from 'ember-concurrency' ;
13- import { assign } from '@ember/polyfills' ;
1413import { cancel , later , next } from '@ember/runloop' ;
1514import { isTesting , macroCondition } from '@embroider/macros' ;
1615import canAutoplay from 'can-autoplay' ;
@@ -364,16 +363,14 @@ export default class Stereo extends Service.extend(EmberEvented) {
364363 */
365364
366365 prepareLoadOptions ( options ) {
367- return assign (
368- {
369- metadata : { } ,
370- sharedAudioAccess : this . _createAndUnlockAudio ( ) ,
371- useSharedAudioAccess : this . useSharedAudioAccess ,
372- isMobileDevice : this . isMobileDevice ,
373- connections : this . connectionLoader . connections ,
374- } ,
375- options
376- ) ;
366+ return {
367+ metadata : { } ,
368+ sharedAudioAccess : this . _createAndUnlockAudio ( ) ,
369+ useSharedAudioAccess : this . useSharedAudioAccess ,
370+ isMobileDevice : this . isMobileDevice ,
371+ connections : this . connectionLoader . connections ,
372+ ...options ,
373+ } ;
377374 }
378375
379376 @task ( { restartable : true , evented : true } )
@@ -496,7 +493,7 @@ export default class Stereo extends Service.extend(EmberEvented) {
496493 */
497494
498495 load ( urlsOrPromise , options ) {
499- options = assign ( { metadata : { } } , options ) ;
496+ options = { metadata : { } , ... options } ;
500497
501498 try {
502499 let promise = this . loadTask . perform ( urlsOrPromise , options ) ;
@@ -527,7 +524,7 @@ export default class Stereo extends Service.extend(EmberEvented) {
527524
528525 @task ( { restartable : true } )
529526 * playTask ( urlsOrPromise , options = { } ) {
530- options = assign ( { metadata : { } } , options ) ;
527+ options = { metadata : { } , ... options } ;
531528
532529 let previouslyPlayingSound = this . isPlaying ? this . currentSound : false ;
533530
0 commit comments