From 5bf5e29163cb274e78c4638f157f1ca531a9a02c Mon Sep 17 00:00:00 2001 From: velzie Date: Sun, 1 Sep 2024 19:53:12 -0400 Subject: [PATCH] oops --- src/client/client.ts | 2 +- src/client/shared/sourcemaps.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/client.ts b/src/client/client.ts index 77f52a6..4e7f327 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -310,7 +310,7 @@ export class ScramjetClient { } } - delete Error.prepareStackTrace; + Error.prepareStackTrace = pst; if (earlyreturn) { return returnValue; diff --git a/src/client/shared/sourcemaps.ts b/src/client/shared/sourcemaps.ts index 135c097..b0bfded 100644 --- a/src/client/shared/sourcemaps.ts +++ b/src/client/shared/sourcemaps.ts @@ -5,7 +5,7 @@ let sourcemaps: { map: [string, number, number][]; }[] = []; -export const enabled = self.$scramjet.config.flags.sourcemaps; +export const enabled = () => self.$scramjet.config.flags.sourcemaps; export default function (client: ScramjetClient, self: Self) { // every script will push a sourcemap