mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
Support scoped variables, unblock REPL async op, and REPL error colors (#1721)
This commit is contained in:
parent
1502051453
commit
1d36eb47eb
18 changed files with 329 additions and 54 deletions
|
@ -1,6 +1,6 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { Console, libdeno, stringifyArgs, inspect, write, stdout } from "deno";
|
||||
import { test, assertEqual } from "./test_util.ts";
|
||||
import { test, assertEqual, assert } from "./test_util.ts";
|
||||
|
||||
const console = new Console(libdeno.print);
|
||||
|
||||
|
@ -245,7 +245,8 @@ test(function consoleTestError() {
|
|||
try {
|
||||
throw new MyError("This is an error");
|
||||
} catch (e) {
|
||||
assertEqual(stringify(e).split("\n")[0], "MyError: This is an error");
|
||||
assert(stringify(e).split("\n")[3]
|
||||
.includes("MyError: This is an error"));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue