Evan You 10 years ago
parent
commit
d6ea2e5dc8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/runtime/instance/proxy.js

+ 1 - 2
src/runtime/instance/proxy.js

@@ -16,8 +16,7 @@ if (process.env.NODE_ENV !== 'production') {
   proxyHandlers = {
   proxyHandlers = {
     has (target, key) {
     has (target, key) {
       const has = key in target
       const has = key in target
-      const allowed = allowedGlobals(key)
-      if (!has && !allowed) {
+      if (!has && !allowedGlobals(key)) {
         warn(
         warn(
           `Trying to access non-existent property "${key}" while rendering.`,
           `Trying to access non-existent property "${key}" while rendering.`,
           target
           target