Guest User

Untitled

a guest
Jan 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. using JavaScriptCore;
  2. using Foundation;
  3.  
  4. namespace JSCore
  5. {
  6. public static class MyClass
  7. {
  8. public static int Test()
  9. {
  10. JSContext jsContext = new JSContext();
  11. jsContext[new NSString("arg1")] = JSValue.From(2, jsContext);
  12. jsContext[new NSString("arg2")] = JSValue.From(2, jsContext);
  13.  
  14. var jsResult = jsContext.EvaluateScript("arg1 + arg2;");
  15.  
  16. return jsResult.ToInt32();
  17. }
  18. }
  19. }
  20.  
  21. IL2CPP error for method 'System.Void ObjCRuntime.Runtime::set_UseAutoreleasePoolInThreadPool(System.Boolean)' in assembly '/Users/ユーザ名/Documents/JavaScriptRuntimeTest/Temp/StagingArea/Data/Managed/Xamarin.iOS.dll'
  22. 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