We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beaae35 commit cda99a1Copy full SHA for cda99a1
packages/svelte/tests/runtime-legacy/shared.ts
@@ -245,7 +245,7 @@ async function run_test_variant(
245
if (str.slice(0, i).includes('warnings') || config.warnings) {
246
// eslint-disable-next-line no-console
247
console.warn = (...args) => {
248
- if (args[0].startsWith('%c[svelte]')) {
+ if (typeof args[0] === 'string' && args[0].startsWith('%c[svelte]')) {
249
// TODO convert this to structured data, for more robust comparison?
250
251
let message = args[0];
0 commit comments