-
Notifications
You must be signed in to change notification settings - Fork 194
[wasm] Option to implement OCaml strings with JavaScript strings #1772
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
base: master
Are you sure you want to change the base?
Changes from 9 commits
5046a70
042bfc0
d198d32
6074e15
d80865b
020b25f
0ab4eab
46c5d92
eb9aa27
d6d431d
72efa7b
6d2784f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -24,7 +24,9 @@ let build ~allowed_imports ~link_options ~opt_options ~variables ~inputs ~output | |||||||||||||||||||||
let missing_imports = | ||||||||||||||||||||||
List.filter | ||||||||||||||||||||||
~f:(fun { Link.Wasm_binary.module_; _ } -> | ||||||||||||||||||||||
not (List.mem ~eq:String.equal module_ allowed_imports)) | ||||||||||||||||||||||
not | ||||||||||||||||||||||
(String.equal module_ "" | ||||||||||||||||||||||
|| List.mem ~eq:String.equal module_ allowed_imports)) | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn’t it be:
Suggested change
But even then I’m getting errors… There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should update the list of allowed imports in |
||||||||||||||||||||||
imports | ||||||||||||||||||||||
in | ||||||||||||||||||||||
if not (List.is_empty missing_imports) | ||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.