File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ void BindingData::NotifyChannelActive(const FunctionCallbackInfo<Value>& args) {
136136 Realm* realm = Realm::GetCurrent (args);
137137 BindingData* binding = realm->GetBindingData <BindingData>();
138138 if (binding == nullptr ) return ;
139+ CHECK (args[0 ]->IsUint32 ());
139140 uint32_t index = args[0 ].As <v8::Uint32>()->Value ();
140141 auto it = binding->channel_status_callbacks_ .find (index);
141142 if (it != binding->channel_status_callbacks_ .end ()) it->second (true );
@@ -146,6 +147,7 @@ void BindingData::NotifyChannelInactive(
146147 Realm* realm = Realm::GetCurrent (args);
147148 BindingData* binding = realm->GetBindingData <BindingData>();
148149 if (binding == nullptr ) return ;
150+ CHECK (args[0 ]->IsUint32 ());
149151 uint32_t index = args[0 ].As <v8::Uint32>()->Value ();
150152 auto it = binding->channel_status_callbacks_ .find (index);
151153 if (it != binding->channel_status_callbacks_ .end ()) it->second (false );
You can’t perform that action at this time.
0 commit comments