aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/imports/qbs/Probes/path-probe.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/imports/qbs/Probes/path-probe.js')
-rw-r--r--share/qbs/imports/qbs/Probes/path-probe.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/qbs/imports/qbs/Probes/path-probe.js b/share/qbs/imports/qbs/Probes/path-probe.js
index b1bdf9930..1f55dcf32 100644
--- a/share/qbs/imports/qbs/Probes/path-probe.js
+++ b/share/qbs/imports/qbs/Probes/path-probe.js
@@ -36,7 +36,7 @@ var ModUtils = require("qbs.ModUtils");
function asStringList(key, value) {
if (typeof(value) === "string")
return [value];
- if (Array.isArray(value))
+ if (value instanceof Array)
return value;
throw key + " must be a string or a stringList";
}
@@ -45,7 +45,7 @@ function canonicalSelectors(selectors, nameSuffixes) {
var mapper = function(selector) {
if (typeof(selector) === "string")
return {names : [selector]};
- if (Array.isArray(selector))
+ if (selector instanceof Array)
return {names : selector};
// dict
if (!selector.names)