Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9610f9a8 authored by Adam Powers's avatar Adam Powers
Browse files

Rolling back change that breaks build

Doesn't seem right that this should be rolled back, since it seems obvious that it's a typo, but the impact is that it breaks pretty much everything... so maybe it's not intended that evalute return an object.
parent 3574969e
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ function JSONPath (opts, obj, expr) { ...@@ -55,7 +55,7 @@ function JSONPath (opts, obj, expr) {
if (opts.autostart !== false) { if (opts.autostart !== false) {
var ret = this.evaluate((objArgs ? opts.json : obj), (objArgs ? opts.path : expr)); var ret = this.evaluate((objArgs ? opts.json : obj), (objArgs ? opts.path : expr));
if (!ret || typeof ret !== 'object') { if (!ret || typeof reg !== 'object') {
throw {avoidNew: true, value: ret, message: "JSONPath should not be called with 'new'"}; throw {avoidNew: true, value: ret, message: "JSONPath should not be called with 'new'"};
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment