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 = /[^|]\|[^|]/
15
15
exports . $get = function ( exp ) {
16
16
var res = expParser . parse ( exp )
17
17
if ( res ) {
18
- return res . get . call ( this , this )
18
+ try {
19
+ return res . get . call ( this , this )
20
+ } catch ( e ) { }
19
21
}
20
22
}
21
23
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ function formatAccessor (key) {
235
235
236
236
exports . compileGetter = function ( path ) {
237
237
var body = 'return o' + path . map ( formatAccessor ) . join ( '' )
238
- return new Function ( 'o' , 'try {' + body + '} catch (e) {}' )
238
+ return new Function ( 'o' , body )
239
239
}
240
240
241
241
/**
@@ -322,4 +322,4 @@ function warnNonExistent (path) {
322
322
'with the "data" option for more reliable reactivity ' +
323
323
'and better performance.'
324
324
)
325
- }
325
+ }
You can’t perform that action at this time.
0 commit comments