Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5193f2c

Browse files
committed
fix, only warn in dev
1 parentb64fb09 commit5193f2c

File tree

1 file changed

+5
-6
lines changed
  • packages/svelte/src/internal/client

1 file changed

+5
-6
lines changed

‎packages/svelte/src/internal/client/proxy.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,13 @@ export function proxy(value) {
298298
*@returns {T | void}
299299
*/
300300
exportfunctionreturn_proxy(value){
301-
if(
302-
!should_proxy(value)&&
303-
!(typeofvalue==='object'&&value!==null&&STATE_SYMBOLinvalue)
304-
){
305-
// if the argument passed was already a proxy, we don't warn
301+
if(should_proxy(value)){
306302
returnproxy(value);
303+
}elseif(DEV&&!(typeofvalue==='object'&&value!==null&&STATE_SYMBOLinvalue)){
304+
// if the argument passed was already a proxy, we don't warn
305+
w.state_return_not_proxyable();
307306
}
308-
w.state_return_not_proxyable();
307+
returnvalue;
309308
}
310309

311310
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp