Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using JavaScriptCore;
- using Foundation;
- namespace JSCore
- {
- public static class MyClass
- {
- public static int Test()
- {
- JSContext jsContext = new JSContext();
- jsContext[new NSString("arg1")] = JSValue.From(2, jsContext);
- jsContext[new NSString("arg2")] = JSValue.From(2, jsContext);
- var jsResult = jsContext.EvaluateScript("arg1 + arg2;");
- return jsResult.ToInt32();
- }
- }
- }
- IL2CPP error for method 'System.Void ObjCRuntime.Runtime::set_UseAutoreleasePoolInThreadPool(System.Boolean)' in assembly '/Users/ユーザ名/Documents/JavaScriptRuntimeTest/Temp/StagingArea/Data/Managed/Xamarin.iOS.dll'
- Additional information: Build a development build for more information. Object reference not set to an instance of an object.
Add Comment
Please, Sign In to add comment