-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[wasm] Do not set permissions in Data.write
#4976
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
[wasm] Do not set permissions in Data.write
#4976
Conversation
Good catch! Don't we need to fix |
I'm sorry, but I don't understand what you mean by "fix I changed
(If you have a better solution, I'm ok to close this PR.) |
@kkebo Sorry, I meant it might be better to ignore the permission attribute within |
@kateinoigakukun Thank you. That makes sense and it can solve many problems with less code. On the other hand, since it is true that the |
Okay, given that the API is not so widely used directly, asking users to change their code might be practically reasonable 👍 |
@swift-ci test |
We're going to lose this diff once we delete this file in the package branch. Please open a corresponding patch for https://github.com/apple/swift-foundation. |
Actually, this one may persist because this change was only made to the class type |
At least in swift-corelibs-foundation, the |
This will soon no longer be the case - see here: https://github.com/apple/swift-foundation/blob/main/Sources/FoundationEssentials/Data/Data%2BWriting.swift |
Yes, I know swift-foundation's Besides, I have read your comment before, and I know we will eventually use the implementation of swift-foundation instead of this repository, but I don't know how much effort we need to make swift-foundation compatible with Wasm. |
This fixes swiftwasm/swift#5584.
This PR does not affect platforms other than WASI.