Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix definedResourceTables ReferenceError with instantiation mode #456

Merged

Conversation

kateinoigakukun
Copy link
Contributor

@kateinoigakukun kateinoigakukun commented Jun 28, 2024

The js_instrinsics should be defined under the instantiate function. Otherwise we get the following error:

dist/component/ruby.component.js:73
  if (definedResourceTables[toTid]) return rep;
  ^

ReferenceError: definedResourceTables is not defined

https://github.com/ruby/ruby.wasm/actions/runs/9708747430/job/26796119275?pr=479#step:14:302

The `js_instrinsics` should be defined under the `instantiate` function.
Otherwise we get the following error:

```
dist/component/ruby.component.js:73
  if (definedResourceTables[toTid]) return rep;
  ^

ReferenceError: definedResourceTables is not defined
```
@guybedford guybedford merged commit 47073c8 into bytecodealliance:main Jun 28, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants