# wasm: use \`File\` abstraction instead of object · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/143e9599d64e7ac7991f360679a5611ee0d59376)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 143e9599d64e7ac7991f360679a5611ee0d59376

Requested commit: 143e9599d64e7ac7991f360679a5611ee0d59376

Commit: 143e9599d64e7ac7991f360679a5611ee0d59376

Tree: 495335f70d3fb3783a133f128bbc6a86280b40cb

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: use `File` abstraction instead of object

When merging sections we now make use of the `File` abstraction so all
objects such as globals, functions, imports, etc are also merged from
the `ZigObject` module. This allows us to use a singular way to perform
each link action without having to check the kind of the file.
The logic is mostly handled in the abstract file module, unless its
complexity warrants the handling within the corresponding module itself.

```

## Parents

- [12505c6d3d4ccfc859b67e4b43c5b3844bebb475](https://git.cafe/gitcafe/zig/commit/12505c6d3d4ccfc859b67e4b43c5b3844bebb475?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/143e9599d64e7ac7991f360679a5611ee0d59376?format=markdown)
