From d614fdfaac13346d71ecf24712abaefe8224687d Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Fri, 28 Jul 2023 16:44:28 -0700 Subject: `MessageChannel` and `MessagePort` (#3860) * copy and format * copy * copy * cleanup * some tests * spellcheck * add types * don't lock getting contextId * array buffer test --- src/bun.js/bindings/BunJSCModule.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bun.js/bindings/BunJSCModule.cpp') diff --git a/src/bun.js/bindings/BunJSCModule.cpp b/src/bun.js/bindings/BunJSCModule.cpp index a145f51c5..5e7a047ea 100644 --- a/src/bun.js/bindings/BunJSCModule.cpp +++ b/src/bun.js/bindings/BunJSCModule.cpp @@ -26,6 +26,7 @@ #include "JavaScriptCore/VMTrapsInlines.h" #include "SerializedScriptValue.h" #include "ExceptionOr.h" +#include "MessagePort.h" #if ENABLE(REMOTE_INSPECTOR) #include "JavaScriptCore/RemoteInspectorServer.h" @@ -552,8 +553,8 @@ JSC_DEFINE_HOST_FUNCTION(functionSerialize, (JSGlobalObject * lexicalGlobalObjec } Vector> transferList; - - ExceptionOr> serialized = SerializedScriptValue::create(*globalObject, value, WTFMove(transferList)); + Vector> dummyPorts; + ExceptionOr> serialized = SerializedScriptValue::create(*globalObject, value, WTFMove(transferList), dummyPorts); if (serialized.hasException()) { WebCore::propagateException(*globalObject, throwScope, serialized.releaseException()); -- cgit v1.2.3