mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 20:11:38 +08:00
This is a first step towards evaluating expressions with source map resolution in the console. This patch only replaces single variables expressions with the name inferred from the source map. The feature is behind a flag because it is still far from being usable (e.g., no support for more complex expressions, auto-complete, partial expression evaluation, fallback UI, etc.). Bug: chromium:1297047 Change-Id: I5d4a233f65cf27112c370eeb81c509cd3e14623d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3461558 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Kim-Anh Tran <kimanh@chromium.org> Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
2 lines
115 B
JavaScript
2 lines
115 B
JavaScript
function sayHello(e){const n=document.createElement("div");n.innerHTML="hello"+e;document.body.append(n);debugger}
|