Commit 1b87b89
authored
Omitting parentheses after
Parentheses can be omitted even if the constructor function has arguments:
```js
new function(test) {
return { test }
}
// Works the same as
new (function(test) {
return { test }
})();
```new
1 parent ff4ef57 commit 1b87b89
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
0 commit comments