mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-04-11 08:00:30 -04:00
Fix setInteger
This commit is contained in:
@@ -156,13 +156,13 @@ void uWS_setInteger(const FunctionCallbackInfo<Value> &args) {
|
||||
return;
|
||||
}
|
||||
|
||||
NativeString collection(args.GetIsolate(), args[1]);
|
||||
uint32_t value = Local<Integer>::Cast(args[1])->Value();
|
||||
|
||||
NativeString collection(args.GetIsolate(), args[2]);
|
||||
if (collection.isInvalid(args)) {
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t value = Local<Integer>::Cast(args[1])->Value();
|
||||
|
||||
kvStoreInteger[std::string(collection.getString())][std::string(key.getString())] = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user