aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-13 18:17:29 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-14 13:51:06 -0400
commit174a942e07b80b419729dbc9f8832e0b5b2f9b36 (patch)
tree9c3e1fa35af22fc34f5432319b12ee5234063da5 /ext/mixed
parent701f73440c661b19cecefeb02ce03dfa9db76fb3 (diff)
Fix misuse of getPathString
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/object-property-accessor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/object-property-accessor.js b/ext/mixed/js/object-property-accessor.js
index 6b5f9678..aedf6dcb 100644
--- a/ext/mixed/js/object-property-accessor.js
+++ b/ext/mixed/js/object-property-accessor.js
@@ -31,7 +31,7 @@ class ObjectPropertyAccessor {
for (let i = 0; i < ii; ++i) {
const key = pathArray[i];
if (!ObjectPropertyAccessor.hasProperty(target, key)) {
- throw new Error(`Invalid path: ${this.getPathString(pathArray.slice(0, i + 1))}`);
+ throw new Error(`Invalid path: ${ObjectPropertyAccessor.getPathString(pathArray.slice(0, i + 1))}`);
}
target = target[key];
}
@@ -46,7 +46,7 @@ class ObjectPropertyAccessor {
const target = this.getProperty(pathArray, pathArray.length - 1);
const key = pathArray[pathArray.length - 1];
if (!ObjectPropertyAccessor.isValidPropertyType(target, key)) {
- throw new Error(`Invalid path: ${this.getPathString(pathArray)}`);
+ throw new Error(`Invalid path: ${ObjectPropertyAccessor.getPathString(pathArray)}`);
}
if (this._setter !== null) {