-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add WebAssembly to runtime library #1677
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Can you include the integration test for wasm from #1675? (Probably just the typescript one is tests/wasm.ts.test is sufficient)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @ry said, it'll be good to add integration test, only TS, I've added both because I wanted to demonstrate that WASM works, but hasn't got type defs, so in this we just need a ts one. I can help
This also modifies the `ts_library_builder` to support inlining assets. Includes integration tests from @sh7dm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for adding my test!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
assert(targetSourceFile.getNamespace("Qat") != null); | ||
const qatNamespace = targetSourceFile.getNamespaceOrThrow("Qat"); | ||
assert(qatNamespace.getClass("Foo") != null); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
- Add deps to --info output (denoland#1720) - Add --allow-read (denoland#1689) - Add deno.isTTY() (denoland#1622) - Add emojis to permission prompts (denoland#1684) - Add basic WebAssembly support (denoland#1677) - Add `NO_COLOR` support https://no-color.org/ (denoland#1716) - Add color exceptions (denoland#1698) - Fix: do not load cache files when recompile flag is set (denoland#1695) - Upgrade V8 to 7.4.98 (denoland#1640)
- Add deps to --info output (#1720) - Add --allow-read (#1689) - Add deno.isTTY() (#1622) - Add emojis to permission prompts (#1684) - Add basic WebAssembly support (#1677) - Add `NO_COLOR` support https://no-color.org/ (#1716) - Add color exceptions (#1698) - Fix: do not load cache files when recompile flag is set (#1695) - Upgrade V8 to 7.4.98 (#1640)
This also modifies the
ts_library_builder
to support inlining assets.We are going to have to manage this slightly different way than other items, because it isn't describing something we are adding to the runtime, it is describing something that is already there. In all other cases that is something we have leveraged the libs that come with TypeScript. We could include the
@types
but it would be a pain in the long term. I hope that TypeScript re-adds these as a lib since they have broad browser support now. The previous issue at TypeScript was closed based on it being experimental.cc/ @ry @sh7dm