Skip to content

[wasm] renames and cleanup before modularization - #61596

Merged
pavelsavara merged 10 commits into
dotnet:mainfrom
pavelsavara:wasm_modularization8
Nov 17, 2021
Merged

[wasm] renames and cleanup before modularization#61596
pavelsavara merged 10 commits into
dotnet:mainfrom
pavelsavara:wasm_modularization8

Conversation

@pavelsavara

@pavelsavarapavelsavara commented Nov 15, 2021

Copy link
Copy Markdown
Member
  • rename main javaScript files to main.js and test-main.js
  • sample and test script cleanup
  • rename set_exit_code method
  • rewrite test start as async method
  • improve script loading via script element on page in test
  • use BINDING.bind_static_method instead of INTERNAL where possible
  • better .d.ts exports
  • formatted html files
  • moved dotnet IFFE out of emcc Closure compiled section and re-enabled terser() and ES2018 target.

@pavelsavarapavelsavara added the arch-wasm WebAssembly architecture label Nov 15, 2021
@pavelsavarapavelsavara added this to the 7.0.0 milestone Nov 15, 2021
@ghost

Copy link
Copy Markdown

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details
  • rename main javaScript files to main.js and test-main.js
  • sample and test script cleanup
  • rename set_exit_code method
  • rewrite test start as async method
  • improve script loading via script element on page in test
  • use BINDING.bind_static_method instead of INTERNAL where possible
  • better .d.ts exports
  • formatted html files
Author:pavelsavara
Assignees:-
Labels:

arch-wasm

Milestone:7.0.0

@kg

kg commented Nov 15, 2021

Copy link
Copy Markdown
Contributor

Happy to finally rename runtime to something reasonable

- move dotnet to -extern-pre-js
- re-enable JS minification
- rename main javaScript files to main.js and test-main.js
- sample and test script cleanup
- rename set_exit_code method
- rewrite test start as async method
- improve script loading via script element on page in test
- use BINDING.bind_static_method instead of INTERNAL where possible
- better .d.ts exports
- formatted html files
@pavelsavara
pavelsavara marked this pull request as ready for review November 16, 2021 06:12
@pavelsavara

Copy link
Copy Markdown
MemberAuthor

This passed CI tests with full matrix. I also tested debugger unit tests and debugger in Blazor app manually.

Comment threadsrc/mono/wasm/runtime/export-types.ts Outdated
Comment threadsrc/mono/wasm/runtime/exports.ts Outdated
Comment threadsrc/mono/wasm/runtime/startup.ts
Comment threadsrc/mono/wasm/test-main.js Outdated
kg
kg approved these changes Nov 16, 2021
Comment threadsrc/mono/wasm/test-main.js
Comment threadsrc/mono/wasm/runtime/exports.ts
- renamed modules.ts to imports.ts which makes more sense
- improved error propagation
- renamed __initializeImportsAndExports
@thaystg

Copy link
Copy Markdown
Member

Debugger tests -> passing.
Debug a Blazor App -> working.

# Conflicts:
#	src/mono/wasm/runtime/startup.ts
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasmWebAssembly architecturearea-Infrastructure-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@pavelsavara@kg@thaystg@maraf