Properly treat MemberExpressions in patterns
This commit is contained in:
parent
54adb879dc
commit
ecf80bdb7d
|
@ -172,6 +172,8 @@ function compilePattern(state, patternPath) {
|
||||||
if (!isLiteral(pattern)) {
|
if (!isLiteral(pattern)) {
|
||||||
console.error('Unsupported pattern node type', pattern);
|
console.error('Unsupported pattern node type', pattern);
|
||||||
}
|
}
|
||||||
|
// FALL THROUGH
|
||||||
|
case 'MemberExpression':
|
||||||
pushConstant(pattern);
|
pushConstant(pattern);
|
||||||
return [t.nullLiteral(), pattern];
|
return [t.nullLiteral(), pattern];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue