-
Notifications
You must be signed in to change notification settings - Fork 449
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
Disable -bs-cross-module-opt for tests #7071
Conversation
I think this may be related to the primitives changes? @cometkim @cristianoc |
Obj.magic is defined as "%identity". If it was defined differently before, then surely the change is the cause for the difference in the generated code. |
There is now this in let magic = Primitive_object_extern.magic This would need a copy of the external instead. |
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.
I think we can merge and investigate.
This is a true reflection of what we have in prod.
I'd prefer to keep this open until the obvious regressions with |
@cometkim I think all |
The They may not be referenced anywhere else, except in exceptional cases such as types. And the only reason I didn't deprecate |
39f5505
to
e172eb5
Compare
That fix is what I was expected; As |
You are right that we do not need to remove the xxx_extern modules. It is sufficient to get rid of usage like let magic = Primitive_object_extern.magic So far I did that for |
092019a
to
69146c7
Compare
69146c7
to
74c11e4
Compare
After the fixes, changes look good to me now. |
74c11e4
to
1e5c819
Compare
1e5c819
to
6217599
Compare
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.
sweet
Runtime + tests are currently compiled with
-bs-cross-module-opt
.Remove this option so that the way the tests are compiled more closely matches the way real-world code is compiled.
FIXED:
When removing this option for the tests, I see some expected changes and some rather surprising ones, like the functionObj.magic
suddenly appearing in the JS output.