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

unexpected console output while using JSModuleContext #97

Closed
fsz1987 opened this issue Apr 8, 2024 · 2 comments
Closed

unexpected console output while using JSModuleContext #97

fsz1987 opened this issue Apr 8, 2024 · 2 comments

Comments

@fsz1987
Copy link

fsz1987 commented Apr 8, 2024

js host code:

        var engine = new JsModuleContext();
        engine.ConsoleEvent += Engine_ConsoleEvent;
        engine.Log += Engine_Log;


        await engine.RunAsync(rootdir,"test.js");

test.js

//test.js
console.log ("hello");

after compile and test this program I got unexpected console output:

2024/4/9 7:11:24 - Compiling module V:\test\yantratest\yantratest\js\./test.js
hello

which is problematic , cause it may break my console output format.
I checked YantraJs source found the problem is in JSModuleContext.js line 380

Console.WriteLine($"{DateTime.Now} - Compiling module {module.filePath}");

is this part of design ?

@ackava
Copy link
Contributor

ackava commented Apr 9, 2024

@fsz1987 no it is not part of design, I will remove it. It was added for debugging.

@ackava
Copy link
Contributor

ackava commented Apr 9, 2024

@fsz1987 I have removed the log from new update. Please close the update if the new update fixes everything you need.

@ackava ackava closed this as completed Apr 22, 2024
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

2 participants