File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,10 @@ function jsvuOSName() {
154154const DEFAULT_JSC_LOCATION = "/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Helpers/jsc"
155155
156156function testSetup ( ) {
157- let shellBinary ;
158- try {
159- sh ( "jsvu" , [ `--engines=${ SHELL_NAME } ` , `--os=${ jsvuOSName ( ) } ` ] ) ;
160- shellBinary = path . join ( os . homedir ( ) , ".jsvu/bin" , SHELL_NAME ) ;
161- } catch {
162- if ( SHELL_NAME == "javascriptcore" )
163- shellBinary = DEFAULT_JSC_LOCATION
164- }
157+ sh ( "jsvu" , [ `--engines=${ SHELL_NAME } ` , `--os=${ jsvuOSName ( ) } ` ] ) ;
158+ let shellBinary = path . join ( os . homedir ( ) , ".jsvu/bin" , SHELL_NAME ) ;
159+ if ( ! fs . existsSync ( shellBinary ) && SHELL_NAME == "javascriptcore" )
160+ shellBinary = DEFAULT_JSC_LOCATION
165161 if ( ! fs . existsSync ( shellBinary ) )
166162 throw new Error ( `Could not find shell binary: ${ shellBinary } ` ) ;
167163 log ( `Installed JavaScript Shell: ${ shellBinary } ` ) ;
You can’t perform that action at this time.
0 commit comments