NC12 issue with new eval() in OC.addScript

Hallo,

This commit from @LukasReschke added fixes to core js.js

now the scipt is evaluated with eval() when being included.

in Audio Player I have the issue now that an external js is giving an error
Uncaught TypeError: ThreeSixtyPlayer is not a constructor

The issue seems to be this part
https://github.com/Rello/audioplayer/blob/master/js/360player.js#L1413

the js is being used as-is in all other releases without problem - also in other web implementations of the soundmanager2.
only the current 12.0.0beta4 has this issue

any idea?

Hello,
some more testing.

the above error occurs if I include my additional script from javascript using
OC.addScript('audioplayer','360player')

when I include the same same via app.php, everything works as expected
\OCP\Util::addScript( 'audioplayer', '360player' );

any explanation for that?