You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
D:\>node a.js
测试abc
D:\a.js:2
throw new Error("娴嬭瘯abc");
^
Error: 娴嬭瘯abc
at Object.<anonymous> (D:\a.js:2:7)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
D:\>node -v
v0.10.22
I will see the console.log output is correct, but the error message is not.
But if I type throw new Error("测试abc") in REPL. The ouput is correct.
The text was updated successfully, but these errors were encountered:
Save a file with the code in utf8 encoding:
and this is the output:
I will see the
console.log
output is correct, but the error message is not.But if I type
throw new Error("测试abc")
in REPL. The ouput is correct.The text was updated successfully, but these errors were encountered: