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
js-eval: remove h>, simplify stuff #55
Conversation
4e07912
to
fa97a64
Compare
Let's keep the bot compatible with 12.x for now. I should upgrade the server to 14.x at some point, but not going to do odd majors. |
I'll update the code in jsEvalPlugin so, ok |
@@ -33,23 +29,20 @@ module.exports = async function jsEvalPlugin({ | |||
|
|||
const hasMaybeTLA = /\bawait\b/.test(code); | |||
|
|||
if (mode === 'b' && !hasMaybeTLA) { | |||
code = (await babel.transformAsync(code, { plugins: transformPlugins })).code; |
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.
done a fix, because that code above was not using parserOpts: {plugins: parserPlugins} before
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 should allow us to use records and tuples, or other babel syntax things, but I'm not totally sure
Ok done, the docker image can use node15 right? (still using timers/promises there, but could update without if needed) |
0afb100
to
6c3da1a
Compare
Hmm for record&tuple, only syntax support was added babel/babel#10865, it's not transpiled to anything yet https://repl.it/@caub/babel-record-and-tuple#index.js, so we can't evaluate it, maybe engine262 has it though (edit: not yet too) |
Guys, Record and Tuple is not ready yet currently, it'll be soon babel/babel#12145 I'll make a different PR for that when the time will come |
Thanks! |
require('timers/promise')