Fix failing assertion when running the test suite
The test suite does things like "1 instanceof 1" and expects a type error to be thrown. Therefore we should not assert(!"unreachable") when instanceof is called with a numberic constant but just fall back to the run-time implementation, which does the right thing. Change-Id: Iced93e679d56f4491d38c50b669e12dd160c220c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
5c8c2307c5
commit
2fa092cbcd
|
@ -661,7 +661,6 @@ IR::Expr *Codegen::binop(IR::AluOp op, IR::Expr *left, IR::Expr *right)
|
|||
|
||||
case IR::OpInstanceof:
|
||||
case IR::OpIn:
|
||||
assert(!"unreachabe");
|
||||
break;
|
||||
|
||||
case IR::OpIfTrue: // unary ops
|
||||
|
|
Loading…
Reference in New Issue