-
Notifications
You must be signed in to change notification settings - Fork 81
Fix GraalJS JavascriptEngine arguments #9044
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
Conversation
|
@@ -92,6 +92,9 @@ public Object executeFunction(String name, Object... parameters) throws Javascri | |||
} | |||
return result; | |||
} catch (Exception e) { | |||
if ("undefined:0: TypeError: undefined is not a function".equals(e.getMessage())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dat eerste stukje voor TypeError lijkt dynamisch, zeker weten?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ik denk het wel 😄
Object result = engine.executeFunction("test"); | ||
assertEquals("Hello World!", result.toString()); | ||
engine.closeRuntime(); | ||
} | ||
|
||
// This test doesn't do much at the moment... We cannot capture the log output (yet). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Klopt dit statement nog? Je had toch een LogHandler toegevoegd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ja, maar de truffel logger is erg raar, heb hier 2uur in gestoken en was niets opgeschoten. In theorie zou alles moeten werken, er is een logger, maar ik krijg nooit log output...
(cherry picked from commit a5ca2c7)
No description provided.