aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/BunJSCModule.cpp
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-07-28 16:44:28 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-28 16:44:28 -0700
commitd614fdfaac13346d71ecf24712abaefe8224687d (patch)
tree2fce0943c663db984755df123d96d788984cad22 /src/bun.js/bindings/BunJSCModule.cpp
parent0a4e476a7c08005e242ed48f3f27895e55deacc9 (diff)
downloadbun-d614fdfaac13346d71ecf24712abaefe8224687d.tar.gz
bun-d614fdfaac13346d71ecf24712abaefe8224687d.tar.zst
bun-d614fdfaac13346d71ecf24712abaefe8224687d.zip
`MessageChannel` and `MessagePort` (#3860)
* copy and format * copy * copy * cleanup * some tests * spellcheck * add types * don't lock getting contextId * array buffer test
Diffstat (limited to 'src/bun.js/bindings/BunJSCModule.cpp')
-rw-r--r--src/bun.js/bindings/BunJSCModule.cpp5
1 files changed, 3 insertions, 2 deletions
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<JSC::Strong<JSC::JSObject>> transferList;
-
- ExceptionOr<Ref<SerializedScriptValue>> serialized = SerializedScriptValue::create(*globalObject, value, WTFMove(transferList));
+ Vector<RefPtr<MessagePort>> dummyPorts;
+ ExceptionOr<Ref<SerializedScriptValue>> serialized = SerializedScriptValue::create(*globalObject, value, WTFMove(transferList), dummyPorts);
if (serialized.hasException()) {
WebCore::propagateException(*globalObject, throwScope, serialized.releaseException());