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

chore: use primordials in 40_testing.js #21422

Merged
merged 6 commits into from
Dec 8, 2023

Conversation

littledivy
Copy link
Member

No description provided.

@littledivy littledivy marked this pull request as ready for review December 1, 2023 16:24
runtime/js/99_main.js Outdated Show resolved Hide resolved
@bartlomieju
Copy link
Member

This will be much easier to handle with denoland/deno_core#366 and denoland/deno_core#363 available.

bartlomieju added a commit to denoland/deno_core that referenced this pull request Dec 5, 2023
This commit adds "ext:core/mod.js" built-in ES module that reexports
"core", "internals" and "primordials" properties of the 
"globalThis.__bootstrap" namespace. This is very convenient for
embedders that author runtime code using ES modules instead of
scripts, because it allows to import these props directly instead of
capturing "globalThis.__bootstrap" namespace.

To achieve that a new "ModuleMap::lazy_load_es_module_from_code"
method was added that accepts a specifier and source code; instantiates
and evaluates the provided code as ES module.

This will be very useful for
#263
and denoland/deno#21422.
@bartlomieju
Copy link
Member

Waiting on denoland/deno_core#379

bartlomieju added a commit to denoland/deno_core that referenced this pull request Dec 8, 2023
@bartlomieju bartlomieju merged commit c5c5dea into denoland:main Dec 8, 2023
14 checks passed
@bartlomieju bartlomieju deleted the testing_primordials branch December 8, 2023 07:33
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

3 participants