@@ -1355,25 +1355,25 @@ addToLibrary({
13551355
13561356 emscripten_date_now : ( ) = > Date . now ( ) ,
13571357
1358- emscripten_performance_now : ( ) = > { { { getPerformanceNow ( ) } } } ( ) ,
1358+ emscripten_performance_now : ( ) = > performance . now ( ) ,
13591359
13601360#if PTHREADS && ! AUDIO_WORKLET
13611361 // Pthreads need their clocks synchronized to the execution of the main
13621362 // thread, so, when using them, make sure to adjust all timings to the
13631363 // respective time origins.
1364- emscripten_get_now : ( ) = > performance . timeOrigin + { { { getPerformanceNow ( ) } } } ( ) ,
1364+ emscripten_get_now : ( ) = > performance . timeOrigin + performance . now ( ) ,
13651365#else
13661366#if AUDIO_WORKLET // https://github.com/WebAudio/web-audio-api/issues/2413
13671367 emscripten_get_now : `;
13681368 // AudioWorkletGlobalScope does not have performance.now()
13691369 // (https://github.com/WebAudio/web-audio-api/issues/2527), so if building
13701370 // with
13711371 // Audio Worklets enabled, do a dynamic check for its presence.
1372- if (globalThis.performance && {{{ getPerformanceNow() }}} ) {
1372+ if (globalThis.performance && performance.now ) {
13731373#if PTHREADS
1374- _emscripten_get_now = () => performance.timeOrigin + {{{ getPerformanceNow() }}} ();
1374+ _emscripten_get_now = () => performance.timeOrigin + performance.now ();
13751375#else
1376- _emscripten_get_now = () => {{{ getPerformanceNow() }}} ();
1376+ _emscripten_get_now = () => performance.now ();
13771377#endif
13781378 } else {
13791379 _emscripten_get_now = Date.now;
@@ -1383,7 +1383,7 @@ addToLibrary({
13831383 // Modern environment where performance.now() is supported:
13841384 // N.B. a shorter form "_emscripten_get_now = performance.now;" is
13851385 // unfortunately not allowed even in current browsers (e.g. FF Nightly 75).
1386- emscripten_get_now : ( ) = > { { { getPerformanceNow ( ) } } } ( ) ,
1386+ emscripten_get_now : ( ) = > performance . now ( ) ,
13871387#endif
13881388#endif
13891389
0 commit comments