mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-20 02:18:26 +00:00
Start first RPC id at 1 rather than 0
This caused an issue in the JS
This commit is contained in:
parent
f5551ffcae
commit
0ed5ba2d8e
@ -233,7 +233,7 @@ static JSGlobalContextRef s_context;
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ (RPCObjectID)storeObject:(JSObjectRef)object {
|
+ (RPCObjectID)storeObject:(JSObjectRef)object {
|
||||||
static RPCObjectID s_next_id = 0;
|
static RPCObjectID s_next_id = 1;
|
||||||
RPCObjectID next_id = s_next_id++;
|
RPCObjectID next_id = s_next_id++;
|
||||||
JSValueProtect(s_context, object);
|
JSValueProtect(s_context, object);
|
||||||
s_objects[next_id] = object;
|
s_objects[next_id] = object;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user