We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e472ecc commit 75008f8Copy full SHA for 75008f8
lib/core.js
@@ -307,7 +307,8 @@ SystemJSLoader.prototype.config = function(cfg) {
307
var hasConfig = false;
308
function checkHasConfig(obj) {
309
for (var p in obj)
310
- return true;
+ if (hasOwnProperty.call(obj, p))
311
+ return true;
312
}
313
if (checkHasConfig(loader.packages) || checkHasConfig(loader.meta) || checkHasConfig(loader.depCache) || checkHasConfig(loader.bundles) || checkHasConfig(loader.packageConfigPaths))
314
throw new TypeError('Incorrect configuration order. The baseURL must be configured with the first SystemJS.config call.');
0 commit comments