Commit c2cc1dd
committed
Fix webpack#412 - Support for holes inside Arrays
An array with a hole such as `[,'foo']` is parsed by Esprima as null.
Skip its evaluation.
Reference: https://code.google.com/p/esprima/issues/detail?id=525#c18
```
According to
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API#Expressions:
interface ArrayExpression <: Expression {
type: "ArrayExpression";
elements: [ Expression | null ];
}
```1 parent 2a419cc commit c2cc1dd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
0 commit comments