diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /devtools/client/debugger/src/workers | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/debugger/src/workers')
5 files changed, 5 insertions, 8 deletions
diff --git a/devtools/client/debugger/src/workers/parser/mapAwaitExpression.js b/devtools/client/debugger/src/workers/parser/mapAwaitExpression.js index ec29d6cf21..97018a129b 100644 --- a/devtools/client/debugger/src/workers/parser/mapAwaitExpression.js +++ b/devtools/client/debugger/src/workers/parser/mapAwaitExpression.js @@ -11,7 +11,7 @@ import { isTopLevel } from "./utils/helpers"; function hasTopLevelAwait(ast) { const hasAwait = hasNode( ast, - (node, ancestors, b) => t.isAwaitExpression(node) && isTopLevel(ancestors) + (node, ancestors) => t.isAwaitExpression(node) && isTopLevel(ancestors) ); return hasAwait; diff --git a/devtools/client/debugger/src/workers/parser/tests/__snapshots__/validate.spec.js.snap b/devtools/client/debugger/src/workers/parser/tests/__snapshots__/validate.spec.js.snap deleted file mode 100644 index a341538a5d..0000000000 --- a/devtools/client/debugger/src/workers/parser/tests/__snapshots__/validate.spec.js.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`has syntax error should return the error object for the invalid expression 1`] = `"SyntaxError : Missing semicolon. (1:3)"`; diff --git a/devtools/client/debugger/src/workers/parser/tests/framework.spec.js b/devtools/client/debugger/src/workers/parser/tests/framework.spec.js index d41f45b71c..fe25fbe283 100644 --- a/devtools/client/debugger/src/workers/parser/tests/framework.spec.js +++ b/devtools/client/debugger/src/workers/parser/tests/framework.spec.js @@ -8,7 +8,7 @@ import cases from "jest-in-case"; cases( "Parser.getFramework", - ({ name, file, value }) => { + () => { const source = populateOriginalSource("frameworks/plainJavascript"); const symbols = getSymbols(source.id); expect(symbols.framework).toBeNull(); diff --git a/devtools/client/debugger/src/workers/parser/tests/getSymbols.spec.js b/devtools/client/debugger/src/workers/parser/tests/getSymbols.spec.js index 723eef1fd9..0c5306d423 100644 --- a/devtools/client/debugger/src/workers/parser/tests/getSymbols.spec.js +++ b/devtools/client/debugger/src/workers/parser/tests/getSymbols.spec.js @@ -9,7 +9,7 @@ import cases from "jest-in-case"; cases( "Parser.getSymbols", - ({ name, file, original, type }) => { + ({ file, original, type }) => { const source = original ? populateOriginalSource(file, type) : populateSource(file, type); diff --git a/devtools/client/debugger/src/workers/parser/tests/mapBindings.spec.js b/devtools/client/debugger/src/workers/parser/tests/mapBindings.spec.js index 8c23ab5873..3731ac1dd5 100644 --- a/devtools/client/debugger/src/workers/parser/tests/mapBindings.spec.js +++ b/devtools/client/debugger/src/workers/parser/tests/mapBindings.spec.js @@ -12,7 +12,7 @@ function format(code) { return prettier.format(code, { semi: false, parser: "babel" }); } -function excludedTest({ name, expression, bindings = [] }) { +function excludedTest({ expression, bindings = [] }) { const safeExpression = mapExpressionBindings( expression, parseConsoleScript(expression), @@ -21,7 +21,7 @@ function excludedTest({ name, expression, bindings = [] }) { expect(format(safeExpression)).toEqual(format(expression)); } -function includedTest({ name, expression, newExpression, bindings }) { +function includedTest({ expression, newExpression, bindings }) { const safeExpression = mapExpressionBindings( expression, parseConsoleScript(expression), |