Skip to content

Commit b952c5f

Browse files
committed
add an extra protection to configurator
1 parent a136315 commit b952c5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core-js/configurator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var setAggressivenessLevel = function (object, constant) {
1414
};
1515

1616
module.exports = function (options) {
17-
if (typeof options == 'object') {
17+
if (options && typeof options == 'object') {
1818
setAggressivenessLevel(options.useNative, isForced.NATIVE);
1919
setAggressivenessLevel(options.usePolyfill, isForced.POLYFILL);
2020
setAggressivenessLevel(options.useFeatureDetection, null);

0 commit comments

Comments
 (0)