Skip to content

Commit d569703

Browse files
committed
docs(module-loader): delete ruanyf#607
1 parent b87ae6e commit d569703

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/module-loader.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ const x = 1;
8989

9090
console.log(x === window.x); //false
9191
console.log(this === undefined); // true
92-
93-
delete x; // 句法错误,严格模式禁止删除变量
9492
```
9593

9694
利用顶层的`this`等于`undefined`这个语法点,可以侦测当前代码是否在 ES6 模块之中。

0 commit comments

Comments
 (0)