getMacOsIOSJavascriptCoreLibPath static method

DynamicLibrary getMacOsIOSJavascriptCoreLibPath()

Implementation

static DynamicLibrary getMacOsIOSJavascriptCoreLibPath() {
  try {
    return DynamicLibrary.open('JavaScriptCore.framework/JavaScriptCore');
  } on ArgumentError {
    return DynamicLibrary.open(
        '/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore');
  }
}