-
Notifications
You must be signed in to change notification settings - Fork 49
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
More support for wasm #178
Merged
+217
−61
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
68e6af1
fix: Using return values (wasm support)
koji-1009 e7d9517
test: Update getRandomValue test and support wasm error
koji-1009 2df83f9
feat: Use js_interop instead of html (wasm support)
koji-1009 3af9272
feat: Add wasm ci test and set timeout-minutes
koji-1009 e09f999
Merge branch 'master' into fix/support_wasm
koji-1009 88f1cc4
test: Stop separating jobs by strategy
koji-1009 9539b5f
fix: getRandomValues
koji-1009 bac32e9
feat: Unify the behavior of dart2js and dart2wasm
koji-1009 1a620f4
fix: Simplify
koji-1009 45ff7e3
feat: Create UnknownError class
koji-1009 b44ce75
test: fix
koji-1009 4e8e9de
refactor: Simplify UnknownError
koji-1009 7856777
refactor: Added processing branching by kIsWasm
koji-1009 9d36a73
fix: Show only kIsWasm
koji-1009 2d3497d
remove: Remove kIsWasm
koji-1009 e4e0e06
Update lib/src/crypto_subtle.dart
koji-1009 d27cadf
Apply suggestions from code review
koji-1009 aeeb3cc
fix: Use jsArray and dartArray
koji-1009 77991b6
fix: minor fix
koji-1009 b9f7954
test: Remove skip option
koji-1009 4efab3b
test: Add tests for various lists
koji-1009 69aa772
fix: Remove kIsWasm
koji-1009 bd9425a
fix: throw ArgumentError when type is not supported
koji-1009 d293552
chore: Check wasm coverage
koji-1009 4b13a9a
chore: Remove unused step
koji-1009 33aa079
chore: Remove wasm option from windows
koji-1009 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: Unify the behavior of dart2js and dart2wasm
commit bac32e9f46b919c81021fcec5e0c80b9c190ceb1
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why are we changing behavior here?
Is this deliberate? If so should it not be orthogonal to this PR, and happen in a separate PR?
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 noticed that when generating unsupported lists (e.g.
Uint64List
) in dart2js, an UnsupportedError is thrown. For example, the following test succeeds.The test fails in dart2wasm.
There is no JS class corresponding to
Uint64List
. Therefore, whenfillRandomBytes(Uint64List(32))
is called in dart2wasm, the process reaches this code.I changed it to UnsupportedError to keep the process consistent between dart2js and dart2wasm. It is possible to split a PR.
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 added test case. 4efab3b
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.
And restore previous code. The addition of the test makes it easier to understand the scope of the impact. bd9425a