mirror of
https://github.com/openharmony/js_worker_module.git
synced 2026-07-19 11:22:56 -04:00
@@ -437,9 +437,7 @@ napi_value Worker::PostMessage(napi_env env, napi_callback_info cbinfo)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (data != nullptr) {
|
||||
worker->PostMessageInner(data);
|
||||
}
|
||||
worker->PostMessageInner(data);
|
||||
|
||||
return NapiValueHelp::GetUndefinedValue(env);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user