# wasm: Move \`createFunction\` to \`ZigObject\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 4d14374a668f6caca7490a136030dbc73507f233

Requested commit: 4d14374a668f6caca7490a136030dbc73507f233

Commit: 4d14374a668f6caca7490a136030dbc73507f233

Tree: b5807abb96e09bb5d60c9fa22df7c3877ae2b02f

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Move `createFunction` to `ZigObject`

This function was previously only called by the backend which generates
a synthetical function that is not represented by any AIR or Zig code.
For this reason, the ownership is moved to the zig-object and stored
there so it can be linked with the other object files without the driver
having to specialize it.

```

## Parents

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

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