-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Remove basic_string<unsigned char> from embind #23070
Merged
aheejin
merged 10 commits into
emscripten-core:main
from
aheejin:remove_basic_string_unsigned_char
Dec 11, 2024
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3ecfa95
Remove basic_string<unsigned_char> from embind
aheejin b34e479
rebaseline
aheejin 6b731e2
rebaseline again
aheejin 49bd6fb
Remove (name === "std::string")
aheejin b421f75
More rebaseline
aheejin da4d244
Merge branch 'main' into remove_basic_string_unsigned_char
aheejin 9328da0
ChangeLog
aheejin 841c4bc
Rebaseline again after merging main
aheejin 9ed61ac
Merge branch 'main' into remove_basic_string_unsigned_char
aheejin d733559
Rebaseline again after merging main again
aheejin 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"a.html": 552, | ||
"a.html.gz": 380, | ||
"a.js": 9718, | ||
"a.js.gz": 4291, | ||
"a.wasm": 7728, | ||
"a.wasm.gz": 3502, | ||
"total": 17998, | ||
"total_gz": 8173 | ||
"a.js": 9593, | ||
"a.js.gz": 4230, | ||
"a.wasm": 7616, | ||
"a.wasm.gz": 3473, | ||
"total": 17761, | ||
"total_gz": 8083 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"a.html": 552, | ||
"a.html.gz": 380, | ||
"a.js": 6849, | ||
"a.js.gz": 2947, | ||
"a.wasm": 9568, | ||
"a.wasm.gz": 4911, | ||
"total": 16969, | ||
"total_gz": 8238 | ||
"a.js": 6724, | ||
"a.js.gz": 2900, | ||
"a.wasm": 9527, | ||
"a.wasm.gz": 4892, | ||
"total": 16803, | ||
"total_gz": 8172 | ||
} |
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
Oops, something went wrong.
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.
Should we change the test such that it tests that this does not work?
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 tried that, and to do that I needed to revive
emval_test_take_and_return_std_basic_string_unsigned_char
inembind_test.cpp
and the error message is likeCannot call emval_test_take_and_return_std_basic_string_unsigned_char due to unbound types: NSt3__212basic_stringIhNS_11char_traitsIhEENS_9allocatorIhEEEE
, so the first test would be likeAre you suggesting to change five deleted tests here like this?
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.
Ping 😀 By the way I wasn't able to get that code to work, it says the throwing error kind is different...
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.
Ping ping 😀 I think we can just delete this. The libc++ change means they don't allow invalid specializations anymore and
unsigned char
is one of many possible invalid specializations after all (Evenbasic_string<int>
was possible before), and I don't think we can cover all invalid specializations by error tests anyway.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.
sgtm