# wasm: reimplement \`deleteDeclExport\` · gitcafe/zig

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

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

Visibility: public

Requested revision: fde8c2f41a76f6bc56d733a8cb6aae90f8e3f41b

Requested commit: fde8c2f41a76f6bc56d733a8cb6aae90f8e3f41b

Commit: fde8c2f41a76f6bc56d733a8cb6aae90f8e3f41b

Tree: 742d36a6ee82580107b0e1f7f8e5fa9fbe225863

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: reimplement `deleteDeclExport`

Removes the symbol from the decl's list of exports, marks it as dead,
as well as appends it to the symbol free list. Also removes it from
the list of global symbols as all exports are global.

In the future we should perhaps use a map for the export list to prevent
linear lookups. But this requires a benchmark as having more than 1
export for the same decl is very rare.

```

## Parents

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

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