mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-24 05:21:54 +00:00
Create a global named global
when running JSC tests
This commit is contained in:
parent
ada3d116af
commit
54bbc708e9
@ -48,6 +48,8 @@
|
|||||||
context[@"Promise"] = promiseModule[@"Promise"];
|
context[@"Promise"] = promiseModule[@"Promise"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
context[@"global"] = [JSValue valueWithNewObjectInContext:context];
|
||||||
|
|
||||||
// Create Realm constructor in the JS context.
|
// Create Realm constructor in the JS context.
|
||||||
RJSInitializeInContext(context.JSGlobalContextRef);
|
RJSInitializeInContext(context.JSGlobalContextRef);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user