Created
February 4, 2020 23:07
-
-
Save ozcanzaferayan/306be48f2b11c632f9327cd22420fdf3 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
JSValueRef jsError = NULL; | |
JSStringRef execJSString = JSStringCreateWithCFString((__bridge CFStringRef)script); | |
JSStringRef jsURL = JSStringCreateWithCFString((__bridge CFStringRef)sourceURL.absoluteString); | |
JSValueRef result = JSEvaluateScript(strongSelf->_context.ctx, execJSString, NULL, jsURL, 0, &jsError); | |
JSStringRelease(jsURL); | |
JSStringRelease(execJSString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment