Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
[guide] fix arrow IIFE call
Browse files Browse the repository at this point in the history
Currently, it throws.
  • Loading branch information
vsemozhetbyt authored and ljharb committed Jan 18, 2017
1 parent 6e4859d commit cb32f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2546,10 +2546,10 @@ Other Style Guides
}());
// good, but legacy (guards against the function becoming an argument when two files with IIFEs are concatenated)
;(() => {
;((() => {
const name = 'Skywalker';
return name;
}());
})());
```
[Read more](https://stackoverflow.com/questions/7365172/semicolon-before-self-invoking-function/7365214%237365214).
Expand Down

0 comments on commit cb32f44

Please sign in to comment.