Skip to content

Typescript wrap touchups - #1908

Open
namesty wants to merge 2 commits into
origin-devfrom
namesty/typescript-wrap-touchups
Open

Typescript wrap touchups#1908
namesty wants to merge 2 commits into
origin-devfrom
namesty/typescript-wrap-touchups

Conversation

@namesty

Copy link
Copy Markdown
Collaborator
  • Updated wrap template: removed build manifest, updated shims
  • Updated VM build strategy version to use latest pwr

@@ -1 +1 @@
0.1.0 No newline at end of file
0.1.1 No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@@ -0,0 +1,2356 @@
module.exports = `function utf8Count(str) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There seem to be a lot of global functions being added here that are not apart of JS's globals: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects

I worry that these will conflict with other functions used within user code.

I think a better way to solve this is to provide a "wrap lib" for typescript wrap devs to use, similar to how we do for Rust, AssemblyScript, and Go.

Sign up for freeto 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

@namesty@dOrgJelli