From b28f9445aae85dbf86033300cfcb55e404529a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 28 Apr 2021 18:28:46 +0200 Subject: refactor(core): simplify module loading code (#10385) General cleanup of module loading code, tried to reduce indentation in various methods on "JsRuntime" to improve readability. Added "JsRuntime::handle_scope" helper function, which returns a "v8::HandleScope". This was done to reduce a code pattern that happens all over the "deno_core". Additionally if event loop hangs during loading of dynamic modules a list of currently pending dynamic imports is printed. --- cli/tests/top_level_await_circular.out | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests') diff --git a/cli/tests/top_level_await_circular.out b/cli/tests/top_level_await_circular.out index d47564441..3b453122e 100644 --- a/cli/tests/top_level_await_circular.out +++ b/cli/tests/top_level_await_circular.out @@ -5,3 +5,5 @@ timeout loop 3 timeout loop 4 timeout loop 5 error: Dynamically imported module evaluation is still pending but there are no pending ops. This situation is often caused by unresolved promise. +Pending dynamic modules: +- [WILDCARD]tests/tla3/b.js -- cgit v1.2.3