Skip to content

Commit 75008f8

Browse files
committed
ensure prototype method polyfills dont affect config checking
1 parent e472ecc commit 75008f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/core.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ SystemJSLoader.prototype.config = function(cfg) {
307307
var hasConfig = false;
308308
function checkHasConfig(obj) {
309309
for (var p in obj)
310-
return true;
310+
if (hasOwnProperty.call(obj, p))
311+
return true;
311312
}
312313
if (checkHasConfig(loader.packages) || checkHasConfig(loader.meta) || checkHasConfig(loader.depCache) || checkHasConfig(loader.bundles) || checkHasConfig(loader.packageConfigPaths))
313314
throw new TypeError('Incorrect configuration order. The baseURL must be configured with the first SystemJS.config call.');

0 commit comments

Comments
 (0)