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

Add WebAssembly to runtime library #1677

Merged
merged 1 commit into from
Feb 5, 2019
Merged

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Feb 5, 2019

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

Copy link
Member

@ry ry left a 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)

@ry ry mentioned this pull request Feb 5, 2019
Copy link
Contributor

@dsseng dsseng left a 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
Copy link
Contributor

@dsseng dsseng left a 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!

Copy link
Member

@ry ry left a 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);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ry ry merged commit 48fedee into denoland:master Feb 5, 2019
ry added a commit to ry/deno that referenced this pull request Feb 9, 2019
- 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)
ry added a commit that referenced this pull request Feb 9, 2019
- 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)
@kitsonk kitsonk mentioned this pull request May 15, 2019
@kitsonk kitsonk deleted the web-assembly branch August 2, 2022 04:44
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.

None yet

4 participants