mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
Fix order of args and stdin
This commit is contained in:
parent
c537cab2da
commit
ea54716774
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
const { writeFile } = require('fs/promises');
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
function execute(language, source, args, stdin) {
|
||||
function execute(language, source, stdin, args) {
|
||||
return new Promise(async resolve => {
|
||||
const stamp = new Date().getTime();
|
||||
const sourceFile = `/tmp/${stamp}.code`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue