Index: runtime/vm/native_api_impl.cc |
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc |
index 4729375f4d50ac53663c948814e7ffb466648ce2..13bab8654998f859564c23befdbe8837e89dbb2a 100644 |
--- a/runtime/vm/native_api_impl.cc |
+++ b/runtime/vm/native_api_impl.cc |
@@ -82,7 +82,8 @@ DART_EXPORT bool Dart_PostInteger(Dart_Port port_id, int64_t message) { |
DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, |
Dart_NativeMessageHandler handler, |
- bool handle_concurrently) { |
+ bool handle_concurrently, |
+ void* peer) { |
if (name == NULL) { |
name = "<UnnamedNativePort>"; |
} |
@@ -94,7 +95,7 @@ DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, |
// Start the native port without a current isolate. |
IsolateSaver saver(Isolate::Current()); |
- NativeMessageHandler* nmh = new NativeMessageHandler(name, handler); |
+ NativeMessageHandler* nmh = new NativeMessageHandler(name, handler, peer); |
Dart_Port port_id = PortMap::CreatePort(nmh); |
PortMap::SetPortState(port_id, PortMap::kLivePort); |
nmh->Run(Dart::thread_pool(), NULL, NULL, 0); |