Skip to content

Commit

Permalink
Revert "feat(compiler): Allow BigInt usage in templates (issue vuejs#…
Browse files Browse the repository at this point in the history
…11126)"

This reverts commit 66fbc39.
  • Loading branch information
shadowings-zy committed Feb 27, 2020
1 parent 6f2eee7 commit 9e05266
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/instance/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (process.env.NODE_ENV !== 'production') {
const allowedGlobals = makeMap(
'Infinity,undefined,NaN,isFinite,isNaN,' +
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' +
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
'require' // for Webpack/Browserify
)

Expand Down Expand Up @@ -54,7 +54,6 @@ if (process.env.NODE_ENV !== 'production') {

const hasHandler = {
has (target, key) {
console.log(target, key)
const has = key in target
const isAllowed = allowedGlobals(key) ||
(typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data))
Expand Down

0 comments on commit 9e05266

Please sign in to comment.