Skip to content

Commit

Permalink
TINY-11177: Why we patch sourcemapped-stacktrace to remove the ES6 …
Browse files Browse the repository at this point in the history
…export I'll never know
  • Loading branch information
TheSpyder committed Jan 24, 2025
1 parent d615cab commit b5c117e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/runner/src/main/ts/core/Utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Suite, Test } from '@ephox/bedrock-common';
import * as SourceMappedStackTrace from 'sourcemapped-stacktrace';
import sourceMappedStackTrace from 'sourcemapped-stacktrace';

// eslint-disable-next-line @typescript-eslint/no-empty-function
export const noop = (): void => {};
Expand Down Expand Up @@ -46,7 +46,7 @@ export const mapStackTrace = (stack: string | undefined): Promise<string> => new
// If the stack trace format can't be found then an Error will be thrown.
// In that case lets just return the original stack instead.
try {
SourceMappedStackTrace.mapStackTrace(stack, (stack: string[]) => resolve(stack.join('\n')));
sourceMappedStackTrace.mapStackTrace(stack, (stack: string[]) => resolve(stack.join('\n')));
} catch (e) {
resolve(stack);
}
Expand Down

0 comments on commit b5c117e

Please sign in to comment.