[fix] Fix for #65
This commit is contained in:
parent
0d795ecf81
commit
60456186d7
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ Memory.prototype.get = function (key) {
|
||||||
//
|
//
|
||||||
while (path.length > 0) {
|
while (path.length > 0) {
|
||||||
key = path.shift();
|
key = path.shift();
|
||||||
if (target && key in target) {
|
if (target && typeof target !== 'string' && key in target) {
|
||||||
target = target[key];
|
target = target[key];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue