Last active
October 14, 2016 14:30
-
-
Save Kureev/f3cd306f74c246656d82103c52dec508 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JsErrorCode SetupGlobalEnvironment() { | |
JsValueRef globalObject; | |
JsGetGlobalObject(&globalObject); | |
JsValueRef bridgeObject; | |
JsCreateObject(&bridgeObject); | |
ChakraUtils::setObjectProperty(globalObject, 'bridge', bridgeObject); | |
ChakraUtils::setObjectFunctionProperty(bridgeObject, 'render', render); | |
return JsNoError; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment