Skip to content

Commit cda99a1

Browse files
committed
fix
1 parent beaae35 commit cda99a1

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/tests/runtime-legacy

1 file changed

+1
-1
lines changed

packages/svelte/tests/runtime-legacy/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async function run_test_variant(
245245
if (str.slice(0, i).includes('warnings') || config.warnings) {
246246
// eslint-disable-next-line no-console
247247
console.warn = (...args) => {
248-
if (args[0].startsWith('%c[svelte]')) {
248+
if (typeof args[0] === 'string' && args[0].startsWith('%c[svelte]')) {
249249
// TODO convert this to structured data, for more robust comparison?
250250

251251
let message = args[0];

0 commit comments

Comments
 (0)