<script>
const tests = [
{obj: (() => {}), msg: "Function object could not be cloned."},
{obj: document.body, msg: "HTMLBodyElement object could not be cloned."},
{obj: {foo: new Audio()}, msg: "HTMLAudioElement object could not be cloned."},
]
for (const test of tests) {
let message = undefined;
try {
structuredClone(test.obj);
} catch (e) {
message = e.message;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.