File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ function get_job(job_info, available_runtimes) {
5151 let {
5252 language,
5353 version,
54+ runtime,
5455 args,
5556 stdin,
5657 files,
@@ -80,15 +81,20 @@ function get_job(job_info, available_runtimes) {
8081 }
8182 }
8283
84+ const has_runtime =
85+ job_info . has_own_property ( 'runtime' ) && job_info . runtime !== null ;
86+
8387 const rt = available_runtimes . find (
8488 rt =>
8589 [ ...rt . aliases , rt . language ] . includes ( language ) &&
86- ( version === rt . version || version === '*' )
90+ ( version === rt . version || version === '*' ) &&
91+ ( ! has_runtime || runtime === rt . runtime )
8792 ) ;
8893
8994 if ( rt === undefined ) {
95+ const runtime_str = has_runtime ? `${ runtime } -` : '' ;
9096 return reject ( {
91- message : `${ language } -${ version } runtime is unknown` ,
97+ message : `${ runtime_str } ${ language } -${ version } runtime is unknown` ,
9298 } ) ;
9399 }
94100
You can’t perform that action at this time.
0 commit comments