Skip to content

Commit b61088e

Browse files
committed
add error handling in vm.$get (fix vuejs#781)
1 parent f140770 commit b61088e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/data.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ var filterRE = /[^|]\|[^|]/
1616
exports.$get = function (exp) {
1717
var res = expParser.parse(exp)
1818
if (res) {
19-
return res.get.call(this, this)
19+
try {
20+
return res.get.call(this, this)
21+
} catch (e) {}
2022
}
2123
}
2224

0 commit comments

Comments
 (0)