console.warn goes to stderr (#810)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2018-09-25 01:27:02 -04:00 committed by Ryan Dahl
parent ad5065e23e
commit f156a86024
4 changed files with 13 additions and 8 deletions

View file

@ -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);