File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ var filterRE = /[^|]\|[^|]/
16
16
exports . $get = function ( exp ) {
17
17
var res = expParser . parse ( exp )
18
18
if ( res ) {
19
- try {
20
- return res . get . call ( this , this )
21
- } catch ( e ) { }
19
+ return res . get . call ( this , this )
22
20
}
23
21
}
24
22
Original file line number Diff line number Diff line change @@ -219,14 +219,15 @@ function formatAccessor(key) {
219
219
220
220
/**
221
221
* Compiles a getter function with a fixed path.
222
+ * The fixed path getter supresses errors.
222
223
*
223
224
* @param {Array } path
224
225
* @return {Function }
225
226
*/
226
227
227
228
exports . compileGetter = function ( path ) {
228
229
var body = 'return o' + path . map ( formatAccessor ) . join ( '' )
229
- return new Function ( 'o' , body )
230
+ return new Function ( 'o' , 'try {' + body + '} catch (e) {}' )
230
231
}
231
232
232
233
/**
You can’t perform that action at this time.
0 commit comments