New issue
Advanced search Search tips

Issue 893487 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Oct 21
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

DevTools snippets do not run microtasks.

Project Member Reported by yangguo@chromium.org, Oct 9

Issue description

Chrome Version: 69

What steps will reproduce the problem?
(1) Open DevTools and switch to Snippets in the Source panel.
(2) Create a snippet with the following code:

async function f(x) {
  var a = 1;
  await (x + 1);
  console.log(1);
}
f()


(3) Run the snippet

What is the expected result?

console prints "1"

What happens instead?

Nothing.

 
I can not reproduce this one. I tried Canary and current stable on about:blank and on crbug.com. We have proper RunMicrotasksScope inside Runtime.runScript which we use to run snippets [1].

Could you provide more repro details? Is console by itself responsible? Do we have any context in JavaScript contexts selector in console?

[1] https://cs.chromium.org/chromium/src/v8/src/inspector/v8-runtime-agent-impl.cc?rcl=60096690102151acdd6a714f15c48ecdf510fc02&l=567
Status: WontFix (was: Untriaged)
Tried this again. Seems to work now. Weird. Never mind then :)

Sign in to add a comment