Closed
Description
Reproduction steps
$ swift package init --name Check --type executable
$ cat <<EOS > Sources/main.swift
import Foundation
let text="test"
do {
try text.write(toFile: "test.txt", atomically: false, encoding:.utf8)
} catch {
print("Error: \(error)")
}
EOS
$ swift build --swift-sdk $SWIFT_SDK_ID
$ wasmkit-cli run --dir . .build/debug/Check.wasm
Error: Error Domain=NSCocoaErrorDomain Code=512 "(null)"UserInfo={NSFilePath=test.txt, NSURL=test.txt -- file:///}
wasmtime run --dir . .build/debug/Check.wasm
succeeded without throwing the exception.
Metadata
Metadata
Assignees
Labels
No labels