豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit b952c5f

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)