import { expect } from 'chai' import { polyfill } from '../mod.js' describe('structuredClone', () => { const target = {} before(() => polyfill(target)) it('Includes structuredClone', () => { expect(target).to.have.property('structuredClone').that.is.a('function') }) it('Supports structuredClone usage', () => { const obj = { foo: 'bar', baz: { qux: 'quux', }, } const clone = target.structuredClone(obj) expect(obj).to.not.equal(clone) expect(obj.baz).to.not.equal(clone.baz) expect(obj.baz.qux).to.equal(clone.baz.qux) }) }) '>astro
Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/static-build-ssr/public (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-03-28[ci] formatGravatar TK 1-2/+2
2024-03-28feat: allow dynamic route segments in isr.exclude array (#10513)Gravatar TK 5-3/+69
2024-03-28[ci] formatGravatar Houston (Bot) 2-3/+3
2024-03-28[ci] release (#10597)Gravatar Houston (Bot) 37-66/+89
2024-03-28db: Rework index config with generated index names (#10589)Gravatar Ben Holmes 6-68/+344