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

Error evalNWBinModule. #8251

Open
IPcorps opened this issue Feb 12, 2025 · 1 comment
Open

Error evalNWBinModule. #8251

IPcorps opened this issue Feb 12, 2025 · 1 comment

Comments

@IPcorps
Copy link

IPcorps commented Feb 12, 2025

Test code (the code was compiled in modules).

index.html:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        nw.Window.get(null).evalNWBinModule(null, "script_1.bin", "./script_1");
        import("./script_1");
    </script>
</body>

</html>

script_1.js:

console.log("script_1");

nw.Window.get(null).evalNWBinModule(null, "script_2.bin", "./script_2");
import("./script_2");

script_2.js:

console.log("script_2");

On versions 85, 86, 87, the result of execution in the console:

Image

But, starting with version 88 (including the last 95), the result of execution in the console:

Image

Is there any explanation for this, or is it a bug that has not been fixed? And if not a bug, how to achieve the behavior of the code that was up to version 88?

@IPcorps
Copy link
Author

IPcorps commented Feb 12, 2025

Apparently, this is a bug. Dynamic imports in the modules do not work at all.

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

No branches or pull requests

1 participant