File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ var filterRE = /[^|]\|[^|]/
1515exports . $get = function ( exp ) {
1616 var res = expParser . parse ( exp )
1717 if ( res ) {
18- return res . get . call ( this , this )
18+ try {
19+ return res . get . call ( this , this )
20+ } catch ( e ) { }
1921 }
2022}
2123
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ function formatAccessor (key) {
235235
236236exports . compileGetter = function ( path ) {
237237 var body = 'return o' + path . map ( formatAccessor ) . join ( '' )
238- return new Function ( 'o' , 'try {' + body + '} catch (e) {}' )
238+ return new Function ( 'o' , body )
239239}
240240
241241/**
@@ -322,4 +322,4 @@ function warnNonExistent (path) {
322322 'with the "data" option for more reliable reactivity ' +
323323 'and better performance.'
324324 )
325- }
325+ }
You can’t perform that action at this time.
0 commit comments