Skip to content

Commit

Permalink
Update structuredClone.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Jul 27, 2021
1 parent 5006ea1 commit 58b6c50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions polyfills/tests/structuredClone.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>WeakRef test</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/u1ui/base.css/full.css">
<body>
<script src="../../mod.js"></script>

Expand All @@ -14,11 +15,13 @@
array: [1,2,3],
date: new Date(),
file: new File(["content"], "name"),
uint8Array: new Uint8Array(2),
}
var copy = structuredClone(object);
console.log(object);
console.log(copy);
console.log(object.date === copy.date)
console.log(object.file === copy.file)
console.log(object.uint8Array === copy.uint8Array)

</script>

0 comments on commit 58b6c50

Please sign in to comment.