MCPcopy Create free account
hub / github.com/LarsDu/StarRust / construct

Function construct

_site/sound.js:24–28  ·  view source on GitHub ↗
(target, args)

Source from the content-addressed store, hash-verified

22 // add them to the array for tracking and resuming later
23 self.AudioContext = new Proxy(self.AudioContext, {
24 construct(target, args) {
25 const result = new target(...args);
26 audioContextList.push(result);
27 return result;
28 },
29 });
30
31 // To resume all AudioContexts being tracked

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected