Skip to content

Commit 14bd783

Browse files
committed
unused
1 parent 2c9d246 commit 14bd783

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/repl/src/lib/Output/srcdoc/index.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,6 @@
6868
<script>
6969
(function () {
7070
function send(payload, origin = '*') {
71-
if (payload.command === 'info' && payload.args[0] instanceof Error) {
72-
const error = payload.args[0];
73-
74-
if (/^(CreatedAt|UpdatedAt|TracedAt)Error$/.test(error.name)) {
75-
// structuredClone obliterates useful info
76-
// TODO do this for all errors?
77-
payload.args[0] = {
78-
type: '__error',
79-
name: error.name,
80-
message: error.message,
81-
stack: error.stack
82-
};
83-
}
84-
}
85-
8671
parent.postMessage(payload, origin);
8772
}
8873

0 commit comments

Comments
 (0)