Why is it limited in the case `currentScope.type === 'global'?

For example,
```js
(function () {
    value = 20;
}());
```
also introduces global variable `value`.