-
Notifications
You must be signed in to change notification settings - Fork 0
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
maybe rewrite three regexps for XS compatibility #4
Comments
The first is coming from The second comes from The third comes from babel itself: babel/packages/babel-helper-create-regexp-features-plugin/src/util.js Lines 11 to 21 in e258faf
The fact that two are coming from upstream libraries means this will be a lot harder to patch locally, we'd have to fork both of those libaries too. |
Your call on how to deal with this in your code. My advice would be to wait a day or two to give us time to investigate. There's some chance it is an easy fix. |
Cool, thanks! |
cc @dckc |
Update. These RegExps are not standard JavaScript. ;) They rely on Annex B. We have updated XS to support this particular Annex B behavior. We'll push that in the coming days. Still, none of these projects need to rely on Annex B. They likely aren't even aware of the dependency. The RegExps can (even should) be updated to eliminate the dependency. |
@phoddie thanks for the fix! |
We noticed three regexps in babel-standalone which are rejected by the XS regexp parser. These showed up as test failures in the agoric-sdk XS integration CI run. That test uses XS to compile a program that incorporates the tests from two of our agoric-sdk modules, and those test files recently acquired a dependency upon SES (in Agoric/agoric-sdk#1244), and SES uses babel-standalone. The first time XS was exposed to babel-standalone, we got an error like this:
https://github.com/Agoric/agoric-sdk/runs/824570388?check_suite_focus=true#step:10:75
The regexps it rejected were:
line 21341:
line 66548:
line 68362:
I'm not sure what's going on with them, they don't look particularly unusual to me.
Ideally/eventually, XS would be fixed to accept these. A shorter-term solution might be for us to rewrite/replace them in this (
@agoric/babel-standalone
) fork. Such a change may or may not be appropriate for pushing upstream.cc mainly @michaelfig and @phoddie , also @FUDCo
The text was updated successfully, but these errors were encountered: