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

Feature: mirror Opal only classes into CRuby #2604

Open
5 tasks
elia opened this issue Oct 26, 2023 · 0 comments
Open
5 tasks

Feature: mirror Opal only classes into CRuby #2604

elia opened this issue Oct 26, 2023 · 0 comments
Labels
Milestone

Comments

@elia
Copy link
Member

elia commented Oct 26, 2023

We will add mirror classes of things only available in Opal/browser to the CRuby implementation, e.g. Promise and possibly share the implementation.

Those classes will start out under the Opal:: namespace with an option to alias them at top-level, e.g. Opal::Promise.

  • Promise
  • Buffer
  • JS
  • Console
  • Native

If something is in Opal and not in CRuby, we should consider namespacing also inside Opal in the case in which official Ruby will introduce a similar class or module, e.g. the JS module was recently introduced by Ruby-WASM.

By v2.0 we should have everything in the namespace and aliased by defualt.
By v3.0 we switch the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant