Support BinaryExpression

This commit is contained in:
Tony Garnock-Jones 2018-12-07 14:18:39 +00:00
parent a6dd72549f
commit 4fb9a066b9
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ function compilePattern(state, patternPath) {
console.error('Unsupported pattern node type', pattern);
}
// FALL THROUGH
case 'BinaryExpression':
case 'MemberExpression':
return [t.nullLiteral(), pushConstant(pattern)];
}