forked from mirrors/gecko-dev
Backed out changeset d24cd5b7ed54 (bug 1873150) for causing mass build bustages. CLOSED TREE
This commit is contained in:
parent
3cc73b0d81
commit
9cb1764c7c
1 changed files with 3 additions and 15 deletions
|
|
@ -82,21 +82,9 @@ export function getPreview(target, tokenPos, editor) {
|
|||
}
|
||||
}
|
||||
|
||||
const { result, hasException, exception } = await client.evaluate(
|
||||
expression,
|
||||
{
|
||||
frameId: selectedFrame.id,
|
||||
}
|
||||
);
|
||||
|
||||
// The evaluation shouldn't return an exception.
|
||||
if (hasException) {
|
||||
throw new Error(
|
||||
`Debugger internal exception: Preview for <${expression}> threw a ${
|
||||
exception?.getGrip()?.class || "Error"
|
||||
}`
|
||||
);
|
||||
}
|
||||
const { result } = await client.evaluate(expression, {
|
||||
frameId: selectedFrame.id,
|
||||
});
|
||||
|
||||
const resultGrip = getGrip(result);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue