File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
packages/svelte/src/internal/client/dev Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
- import { DEV } from 'esm-env' ;
2
1
import * as w from '../warnings.js' ;
3
2
import { get_proxied_value } from '../proxy.js' ;
4
3
@@ -66,11 +65,10 @@ export function init_array_prototype_warnings() {
66
65
* @returns {boolean }
67
66
*/
68
67
export function strict_equals ( a , b ) {
69
- if ( DEV ) {
70
- if ( a !== b && get_proxied_value ( a ) === get_proxied_value ( b ) ) {
71
- w . state_proxy_equality_mismatch ( '=== operator' ) ;
72
- }
68
+ if ( a !== b && get_proxied_value ( a ) === get_proxied_value ( b ) ) {
69
+ w . state_proxy_equality_mismatch ( '=== operator' ) ;
73
70
}
71
+
74
72
return a === b ;
75
73
}
76
74
@@ -80,10 +78,9 @@ export function strict_equals(a, b) {
80
78
* @returns {boolean }
81
79
*/
82
80
export function equals ( a , b ) {
83
- if ( DEV ) {
84
- if ( a != b && get_proxied_value ( a ) == get_proxied_value ( b ) ) {
85
- w . state_proxy_equality_mismatch ( '== operator' ) ;
86
- }
81
+ if ( a != b && get_proxied_value ( a ) == get_proxied_value ( b ) ) {
82
+ w . state_proxy_equality_mismatch ( '== operator' ) ;
87
83
}
84
+
88
85
return a == b ;
89
86
}
You can’t perform that action at this time.
0 commit comments