From cf5a39a36127e8df70ac34b9895771fb41d474a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 5 May 2020 18:23:15 +0200 Subject: refactor(ts): remove op_cache (#5071) This PR removes op_cache and refactors how Deno interacts with TS compiler. Ultimate goal is to completely sandbox TS compiler worker; it should operate on simple request -> response basis. With this commit TS compiler no longer caches compiled sources as they are generated but rather collects all sources and sends them back to Rust when compilation is done. Additionally "Diagnostic" and its children got refactored to use "Deserialize" trait instead of manually implementing JSON deserialization. --- cli/js/tests/format_error_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/js/tests/format_error_test.ts') diff --git a/cli/js/tests/format_error_test.ts b/cli/js/tests/format_error_test.ts index 0cb963ae6..ae7559c82 100644 --- a/cli/js/tests/format_error_test.ts +++ b/cli/js/tests/format_error_test.ts @@ -26,7 +26,7 @@ unitTest(function formatDiagnosticError() { try { Deno.formatDiagnostics(bad); } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof Deno.errors.InvalidData); thrown = true; } assert(thrown); -- cgit v1.2.3