Skip to content

Revise JavaScript language support section#304

Merged
vados-cosmonic merged 8 commits intobytecodealliance:mainfrom
catamorphism:language-support-js
Sep 9, 2025
Merged

Revise JavaScript language support section#304
vados-cosmonic merged 8 commits intobytecodealliance:mainfrom
catamorphism:language-support-js

Conversation

@catamorphism
Copy link
Contributor

@catamorphism catamorphism commented Aug 15, 2025

As with other sections, added more details and factored out code examples into other files.

  • Fixed two errors in jco componentize command
    The world name was wrong in one of the commands, and "--disable all"
    should be "--disable=all" (at least with a recent jco version)
  • Added omitted steps of creating package.json files (without which
    we get "Cannot use import statement outside a module" error)
  • Fixed missing semicolon in component.wit file for string-reverse example
  • Corrected string-reverse example to use split() and join() (the example
    didn't run before)
  • Corrected string-reverse-uppercase example to declare reverseAndUppercase(s)
    rather than reverseAndUppercase() (this example also didn't run before).

As with other sections, added more details and factored
out code examples into other files.

* Fixed two errors in `jco componentize` command
  The world name was wrong in one of the commands, and "--disable all"
  should be "--disable=all" (at least with a recent jco version)
* Added omitted steps of creating package.json files (without which
  we get "Cannot use import statement outside a module" error)
* Fixed missing semicolon in component.wit file for string-reverse example
* Corrected string-reverse example to use split() and join() (the example
  didn't run before)
* Corrected string-reverse-uppercase example to declare reverseAndUppercase(s)
  rather than reverseAndUppercase() (this example also didn't run before).
@catamorphism catamorphism marked this pull request as ready for review September 2, 2025 19:20
Copy link
Collaborator

@vados-cosmonic vados-cosmonic 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 working on this @catamorphism , left a few nits that should be very minor

catamorphism and others added 7 commits September 4, 2025 16:55
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
@vados-cosmonic vados-cosmonic merged commit ec0daed into bytecodealliance:main Sep 9, 2025
8 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.

3 participants