Skip to content

Commit

Permalink
Use WASMFS_UNREACHABLE in node_backend.cpp. NFC
Browse files Browse the repository at this point in the history
This makes crashes far more transparent.
  • Loading branch information
sbc100 committed Feb 7, 2025
1 parent a9651ff commit a35b847
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions system/lib/wasmfs/backends/node_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,11 @@ class NodeDirectory : public Directory {

std::shared_ptr<Symlink> insertSymlink(const std::string& name,
const std::string& target) override {
// TODO
abort();
WASMFS_UNREACHABLE("TODO: implement NodeDirectory::insertSymlink");
}

int insertMove(const std::string& name, std::shared_ptr<File> file) override {
// TODO
abort();
WASMFS_UNREACHABLE("TODO: implement NodeDirectory::insertMove");
}

ssize_t getNumEntries() override {
Expand Down Expand Up @@ -256,8 +254,7 @@ class NodeBackend : public Backend {
}

std::shared_ptr<Symlink> createSymlink(std::string target) override {
// TODO
abort();
WASMFS_UNREACHABLE("TODO: implement NodeBackend::createSymlink");
}
};

Expand Down

0 comments on commit a35b847

Please sign in to comment.