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

es6 #1281

Merged
merged 1 commit into from
Apr 6, 2025
Merged

es6 #1281

merged 1 commit into from
Apr 6, 2025

Conversation

basicer
Copy link
Collaborator

@basicer basicer commented Mar 18, 2025

No description provided.

@basicer basicer force-pushed the es6 branch 6 times, most recently from 7709fe9 to 00c01fe Compare March 19, 2025 07:35
@basicer basicer force-pushed the es6 branch 8 times, most recently from d0b3982 to 128208a Compare March 31, 2025 07:35
@basicer basicer marked this pull request as ready for review March 31, 2025 07:53
@@ -92,7 +97,7 @@ else
LoadBinaryResource = function(url, OnSuccess, OnError)
{
//console.log(url);
require("fs")["readFile"](url, function(err, data)
import("node:" + "fs").then(fs => fs["readFile"](url, function(err, data)

This comment was marked as resolved.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, otherwise closure compalins it cant find the module. Making it an expression like this seems to suppress that.

@copy copy merged commit a921961 into copy:master Apr 6, 2025
3 checks passed
@copy
Copy link
Owner

copy commented Apr 6, 2025

Excellent stuff, thanks!

@chschnell
Copy link
Contributor

@basicer: Many thanks for this!

My v86 embedding was already module-based and switching over to libv86.mjs worked like a charme!

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.

4 participants