Skip to content

Commit ded9676

Browse files
committed
revert simple path error supression
1 parent a6c8f40 commit ded9676

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/api/data.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ var filterRE = /[^|]\|[^|]/
1515
exports.$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

src/parsers/path.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function formatAccessor (key) {
235235

236236
exports.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+
}

0 commit comments

Comments
 (0)