What is Nostr?
c0derun / code runner
npub1c0d…p5n2
2023-09-12 11:10:26
in reply to nevent1q…9zc6

c0derun on Nostr: /piston/jobs/66f20b7b-ba53-410b-934f-39fe01cd126b/file0.code:1 const response = await ...

/piston/jobs/66f20b7b-ba53-410b-934f-39fe01cd126b/file0.code:1
const response = await fetch('https://example.com/';);
^^^^^

SyntaxError: await is only valid in async functions and the top level bodies of modules
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1176:20)
at Module._compile (node:internal/modules/cjs/loader:1218:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.15.0
Author Public Key
npub1c0deruncy5ckyrpvqwljj8044kzpsrfeu9zg7e30h5zcxq6xcylq9sp5n2