Skip to content
New issue

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

support ramda expression #232

Open
naratteu opened this issue Feb 18, 2025 · 0 comments
Open

support ramda expression #232

naratteu opened this issue Feb 18, 2025 · 0 comments

Comments

@naratteu
Copy link

naratteu commented Feb 18, 2025

#r "nuget: Jurassic, 3.2.9"
var engine = new Jurassic.ScriptEngine();
engine.SetGlobalValue("console", new Jurassic.Library.FirebugConsole(engine));
engine.Execute("""
const ramda = (a, b) => a + b;
console.log(ramda(3,4)); // 7
""");
Error: Jurassic.JavaScriptException: SyntaxError: Unexpected token '>' in expression.
at Jurassic.ScriptEngine.Execute(ScriptSource source)
at Jurassic.ScriptEngine.Execute(String code)
at Submission#31.<<Initialize>>d__0.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, StrongBox`1 exceptionHolderOpt, Func`2 catchExceptionOpt, CancellationToken cancellationToken)

Also, it would be nice if the line with the error was also printed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant