aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/BunWorkerGlobalScope.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/BunWorkerGlobalScope.cpp')
-rw-r--r--src/bun.js/bindings/BunWorkerGlobalScope.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bun.js/bindings/BunWorkerGlobalScope.cpp b/src/bun.js/bindings/BunWorkerGlobalScope.cpp
index 60b615e18..ef1f70fdf 100644
--- a/src/bun.js/bindings/BunWorkerGlobalScope.cpp
+++ b/src/bun.js/bindings/BunWorkerGlobalScope.cpp
@@ -1,10 +1,14 @@
#include "config.h"
#include "BunWorkerGlobalScope.h"
+#include "MessagePortChannelProviderImpl.h"
-namespace Bun {
-using namespace WebCore;
+namespace WebCore {
WTF_MAKE_ISO_ALLOCATED_IMPL(GlobalScope);
+MessagePortChannelProvider& GlobalScope::messagePortChannelProvider()
+{
+ return *reinterpret_cast<MessagePortChannelProvider*>(&MessagePortChannelProviderImpl::singleton());
+}
} \ No newline at end of file