Fix setInteger
This commit is contained in:
parent
83e38ba334
commit
0e63c77bd0
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue