From 37a6cd7eb0a3f95016d2aee4254e8e99b9bf6a50 Mon Sep 17 00:00:00 2001 From: Murat Dogan Date: Sat, 29 Jun 2024 19:02:16 +0200 Subject: [PATCH] typo --- src/peer-connection-wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer-connection-wrapper.cpp b/src/peer-connection-wrapper.cpp index 94ce5a5..9bf2f39 100644 --- a/src/peer-connection-wrapper.cpp +++ b/src/peer-connection-wrapper.cpp @@ -508,7 +508,7 @@ Napi::Value PeerConnectionWrapper::createDataChannel(const Napi::CallbackInfo &i { if (!initConfig.Get("unordered").IsBoolean()) { - Napi::TypeError::New(env, "Wrong DataChannel Init Config (ordered)").ThrowAsJavaScriptException(); + Napi::TypeError::New(env, "Wrong DataChannel Init Config (unordered)").ThrowAsJavaScriptException(); return info.Env().Null(); } init.reliability.unordered = !initConfig.Get("unordered").As();