Skip to content

Commit 12e0d09

Browse files
committedJul 28, 2018
fix(document): don't double-call deeply nested custom getters when using get()
Fix #6779 Re: #6637
1 parent 695cb6f commit 12e0d09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎lib/document.js

+2
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,8 @@ Document.prototype.get = function(path, type, options) {
11151115
obj = void 0;
11161116
} else if (obj instanceof Map) {
11171117
obj = obj.get(pieces[i]);
1118+
} else if (i === l - 1) {
1119+
obj = utils.getValue(pieces[i], obj);
11181120
} else {
11191121
obj = obj[pieces[i]];
11201122
}

0 commit comments

Comments
 (0)
Please sign in to comment.