mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 20:11:38 +08:00
This adds a new test that verifies a breakpoint set in a script used in workers will be hit if a new worker is spawned after the breakpoint is set. Also moved stuff out of the resources/pages folder that belongs elsewhere. Also fixed the reformatting of the minified file so that its source map makes sense. Bug: 1062308 Change-Id: Ifa0a31513332d423ef4529abf6f357b9d238dd42 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2144170 Commit-Queue: Eric Leese <leese@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
14 lines
203 B
JavaScript
14 lines
203 B
JavaScript
/**
|
|
* @fileoverview Worker that launches debugger if messaged.
|
|
*/
|
|
|
|
self.onmessage = ({data}) => {
|
|
if (data.command === 'break') {
|
|
debugger;
|
|
}
|
|
};
|
|
|
|
function anotherFunc(a, b) {
|
|
return a + b;
|
|
}
|