Skip to content

Commit d38f89e

Browse files
committed
feat: add inspect
1 parent 784af9f commit d38f89e

File tree

1 file changed

+5
-0
lines changed
  • packages/svelte/src/reactivity

1 file changed

+5
-0
lines changed

packages/svelte/src/reactivity/url.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { INSPECT_SYMBOL } from '../internal/client/constants.js';
12
import { source, set } from '../internal/client/reactivity/sources.js';
23
import { get } from '../internal/client/runtime.js';
34

@@ -150,6 +151,10 @@ export class ReactiveURL extends URL {
150151
toJSON() {
151152
return this.href;
152153
}
154+
155+
[INSPECT_SYMBOL]() {
156+
this.href;
157+
}
153158
}
154159

155160
export class ReactiveURLSearchParams extends URLSearchParams {

0 commit comments

Comments
 (0)