Bug 186888
| Summary: | Incorrect scoping in module script | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jake Archibald <jaffathecake> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | fabianebert.com, mathias, ysuzuki |
| Priority: | P2 | ||
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jake Archibald
http://jsbin.com/buxogoz/edit?html,console
<script>
const foo = 'bar';
</script>
<script>
console.log(foo);
</script>
<script type="module">
console.log(foo);
</script>
"bar" should be logged twice, but Safari throws on the second log as it can't find "foo".
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fabian
Any updates on this bug?
Yusuke Suzuki
Fixed in bug 193347
*** This bug has been marked as a duplicate of bug 193347 ***