-
Notifications
You must be signed in to change notification settings - Fork 18
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
TLA #28
TLA #28
Conversation
5902b1e
to
94ca72d
Compare
Oops, hit the button without leaving a comment. This looks really great, thank you! I requested a few changes, but I think they should all be fairly minor. |
Signed-off-by: Guy Bedford <[email protected]>
Signed-off-by: Guy Bedford <[email protected]>
Co-authored-by: Till Schneidereit <[email protected]>
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.
Very nice, thank you!
runtime/js.cpp
Outdated
@@ -42,16 +42,16 @@ bool initialize(const char *filename) { | |||
|
|||
RootedValue result(engine.cx()); | |||
bool success = engine.eval_toplevel(filename, &result); | |||
success = success && engine.run_event_loop(&result); | |||
success = success && engine.run_event_loop(); |
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.
This turns out to be redundant, because eval_toplevel
always spins the event loop (with or without this PR), so let's just remove it.
success = success && engine.run_event_loop(); |
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.
Sure, nice to clean this up. Done.
Adds initial support for TLA with some basic tests, resolving #14.
There is still work to do on improving errors and unhandled rejections.
Also expands the test suite to better support error output testing to enable these follow-ups.
Note, this requires #25 to land first for CI to pass.