-
Notifications
You must be signed in to change notification settings - Fork 136
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
Refactor TLA support #397
Refactor TLA support #397
Conversation
Thank you for doing this! ❤️ |
I'm planning to use QuickJS/QuickJS-NG soon, so contributing to this project makes sense! The only thing not implemented is TLA support in the REPL. The code from this fork seems quite different at a first glance, but I'll try to make it work soon. Not sure if that's a blocker for this PR. |
I think not but I'll take a closer look. Thanks again! |
The only 2 missing ones are: bellard/quickjs@e44b793 I think we should at least include bellard/quickjs@00967aa here and the bits in bellard/quickjs@e44b793 that add the new eval flag. The REPL changes can be a subsequent PR. |
Just added |
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.
LGTM. @chqrlie can you PTAL too?
Looking at this... Takes some time to ensure no unseen regressions, should be done soon. |
Alright, I rebased this and added the missing REPL bits. @chqrlie PTAL! Something I noticed is the difference in return values now:
vs before:
Upstream is correct so it seems something is amiss here. |
Simpler case:
|
Alright, this is now ready to do AFAICT! @chqrlie can you PTAL? I'd like to cut a release after this goes in. |
Very busy at the moment, will try to review by Friday night. |
Gentle ping @chqrlie :-) |
So, our implementation matches upstream now, 262 passes and I also tested with txiki.js: saghul/txiki.js#540 I'm going to merge this and if we need to make tweaks to it we can dot hat as we do any other bugfix. |
OK for me, I was about to write the same thing :) |
Closes #339
392bbff essentially reverts #6 and the next commits apply progressively the commits mentioned in #339.