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