We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both async function and arrow function seem to work, but they don't work if you use them together.
VM: GraalVM 17.0.8 OS: macOS 14
1: const a = async () => {} ^ 2: console.log(a) SyntaxError: expected function, but found (
const a = async () => {} console.log(a)
import com.reevajs.reeva.Reeva import com.reevajs.reeva.core.Agent import com.reevajs.reeva.core.lifecycle.LiteralSourceInfo fun main() { val agent = Agent.build() agent.enter() println( Reeva.execute( LiteralSourceInfo( "test", """ const a = async () => {} console.log(a) """.trimIndent(), false ), agent.makeRealmAndInitializeExecutionEnvironment() ) ) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
Both async function and arrow function seem to work, but they don't work if you use them together.
Spec
VM: GraalVM 17.0.8
OS: macOS 14
Error
Example
The text was updated successfully, but these errors were encountered: