Skip to content

Commit

Permalink
fix: add structuredClone
Browse files Browse the repository at this point in the history
  • Loading branch information
laktek committed May 27, 2023
1 parent f705732 commit 182074b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/sb_core/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
import { promiseRejectMacrotaskCallback } from "ext:sb_core_main_js/js/promises.js";
import { denoOverrides } from "ext:sb_core_main_js/js/denoOverrides.js";
import * as performance from "ext:deno_web/15_performance.js";
import * as messagePort from "ext:deno_web/13_message_port.js";

const core = globalThis.Deno.core;
const ops = core.ops;
Expand Down Expand Up @@ -154,6 +155,9 @@ const globalScope = {
PerformanceMark: nonEnumerable(performance.PerformanceMark),
PerformanceMeasure: nonEnumerable(performance.PerformanceMeasure),
performance: writable(performance.performance),

// messagePort
structuredClone: writable(messagePort.structuredClone),
}

// set build info
Expand Down

0 comments on commit 182074b

Please sign in to comment.