这是indexloc提供的服务,不要输入任何密码
Skip to content

JavaScript 模块名覆盖声明时存在隐患 #29

@SuperMonster003

Description

@SuperMonster003

JavaScript 模块名被覆盖声明时,
将导致存在依赖关系的内部模块无法正常使用.

例如 console 模块依赖了 util 模块,
util 覆盖声明时将导致 console 无法使用:

console.log("hello"); // 正常
let util = null;
console.log("hello"); // 报错

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐞 故障Confirmed bugs or reports that are very likely to be bugsSettled 🌴 完成Happy ending for both human beings and issues themselves

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions