Skip to content

Commit

Permalink
add in the fix from vuejs#7878 to prevent the charAt error
Browse files Browse the repository at this point in the history
  • Loading branch information
EdBailey committed Apr 13, 2018
1 parent f8c4054 commit f0c4ac3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/vue.common.js
Expand Up @@ -1929,7 +1929,7 @@ if (process.env.NODE_ENV !== 'production') {
var hasHandler = {
has: function has (target, key) {
var has = key in target;
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
var isAllowed = allowedGlobals(key) || (typeof key === 'string' && key.charAt(0) === '_');
if (!has && !isAllowed) {
warnNonPresent(target, key);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.esm.js
Expand Up @@ -1927,7 +1927,7 @@ if (process.env.NODE_ENV !== 'production') {
var hasHandler = {
has: function has (target, key) {
var has = key in target;
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
var isAllowed = allowedGlobals(key) || (typeof key === 'string' && key.charAt(0) === '_');
if (!has && !isAllowed) {
warnNonPresent(target, key);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.js
Expand Up @@ -1929,7 +1929,7 @@ var initProxy;
var hasHandler = {
has: function has (target, key) {
var has = key in target;
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
var isAllowed = allowedGlobals(key) || (typeof key === 'string' && key.charAt(0) === '_');
if (!has && !isAllowed) {
warnNonPresent(target, key);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.runtime.common.js
Expand Up @@ -1902,7 +1902,7 @@ if (process.env.NODE_ENV !== 'production') {
var hasHandler = {
has: function has (target, key) {
var has = key in target;
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
var isAllowed = allowedGlobals(key) || (typeof key === 'string' && key.charAt(0) === '_');
if (!has && !isAllowed) {
warnNonPresent(target, key);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.runtime.esm.js
Expand Up @@ -1900,7 +1900,7 @@ if (process.env.NODE_ENV !== 'production') {
var hasHandler = {
has: function has (target, key) {
var has = key in target;
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
var isAllowed = allowedGlobals(key) || (typeof key === 'string' && key.charAt(0) === '_');
if (!has && !isAllowed) {
warnNonPresent(target, key);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.runtime.js
Expand Up @@ -1902,7 +1902,7 @@ var initProxy;
var hasHandler = {
has: function has (target, key) {
var has = key in target;
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
var isAllowed = allowedGlobals(key) || (typeof key === 'string' && key.charAt(0) === '_');
if (!has && !isAllowed) {
warnNonPresent(target, key);
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/instance/proxy.js
Expand Up @@ -45,7 +45,7 @@ if (process.env.NODE_ENV !== 'production') {
const hasHandler = {
has (target, key) {
const has = key in target
const isAllowed = allowedGlobals(key) || key.charAt(0) === '_'
const isAllowed = allowedGlobals(key) || (typeof key === 'string' && key.charAt(0) === '_')
if (!has && !isAllowed) {
warnNonPresent(target, key)
}
Expand Down

0 comments on commit f0c4ac3

Please sign in to comment.