mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
console.warn goes to stderr (#810)
This commit is contained in:
parent
ad5065e23e
commit
f156a86024
4 changed files with 13 additions and 8 deletions
|
@ -112,7 +112,7 @@ global.SnapshotBug = () => {
|
|||
|
||||
global.GlobalErrorHandling = () => {
|
||||
libdeno.setGlobalErrorHandler((message, source, line, col, error) => {
|
||||
libdeno.print(`line ${line} col ${col}`);
|
||||
libdeno.print(`line ${line} col ${col}`, true);
|
||||
assert("ReferenceError: notdefined is not defined" === message);
|
||||
assert(source === "helloworld.js");
|
||||
assert(line === 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue