Open hbibel opened 6 months ago
1.1.4+fbe2fe0c3
Linux 5.15.146.1-microsoft-standard-WSL2 x86_64 x86_64
bun repl
function foo({x: boolean}) { return Promise.resolve(123) }
await
await foo({x: true})
The function is evaluated without any issues
Bun REPL reports:
SyntaxError: Unexpected keyword 'return'. Expected '}' to end an object literal.
No response
Also happens here. Funnily, if you do const x = foo({x: true}) and await x, it works. The issue is having them on the same line.
const x = foo({x: true})
await x
What version of Bun is running?
1.1.4+fbe2fe0c3
What platform is your computer?
Linux 5.15.146.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
bun repl
function foo({x: boolean}) { return Promise.resolve(123) }
await
, e.g.await foo({x: true})
What is the expected behavior?
The function is evaluated without any issues
What do you see instead?
Bun REPL reports:
Additional information
No response