chore: skip READONLY_SYBOL check in prod (#9825)

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/9807/head
Rich Harris 11 months ago committed by GitHub
parent 481df0e64a
commit fb853106a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -149,7 +149,7 @@ const handler = {
}, },
get(target, prop, receiver) { get(target, prop, receiver) {
if (prop === READONLY_SYMBOL) return target[READONLY_SYMBOL]; if (DEV && prop === READONLY_SYMBOL) return target[READONLY_SYMBOL];
const metadata = target[STATE_SYMBOL]; const metadata = target[STATE_SYMBOL];
let s = metadata.s.get(prop); let s = metadata.s.get(prop);
@ -207,7 +207,7 @@ const handler = {
}, },
set(target, prop, value) { set(target, prop, value) {
if (prop === READONLY_SYMBOL) { if (DEV && prop === READONLY_SYMBOL) {
target[READONLY_SYMBOL] = value; target[READONLY_SYMBOL] = value;
return true; return true;
} }

Loading…
Cancel
Save