Backed out changeset d24cd5b7ed54 (bug 1873150) for causing mass build bustages. CLOSED TREE

This commit is contained in:
Iulian Moraru 2024-06-04 13:30:15 +03:00
parent 3cc73b0d81
commit 9cb1764c7c

View file

@ -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);