fix(js): Ensure runTimeArgs are not ignored (#17527)

This commit is contained in:
Nicholas Cunningham 2023-06-12 08:28:38 -06:00 committed by GitHub
parent 860d82a640
commit 478fb8ba56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,8 @@ export async function* nodeExecutor(
}
function getExecArgv(options: NodeExecutorOptions) {
const args = ['-r', require.resolve('source-map-support/register')];
const args = (options.runtimeArgs ??= []);
args.push('-r', require.resolve('source-map-support/register'));
if (options.inspect === true) {
options.inspect = InspectType.Inspect;