Fix failing assertion when running the test suite
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 26 Feb 2013 11:45:47 +0000 (12:45 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 26 Feb 2013 22:43:42 +0000 (23:43 +0100)
commit2fa092cbcdc4296e976be2c574073e3b42aced40
tree7f6be97e2161092691b420bb590d32b272934550
parent5c8c2307c59de7c3b024d9e9987e4bbe0528c440
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>
src/v4/qv4codegen.cpp