Unreachable should call V8_Fatal on release builds instead of silently ignoring the error.

BUG=

Review URL: https://codereview.chromium.org/1410713006

Cr-Commit-Position: refs/heads/master@{#31397}
This commit is contained in:
hpayer 2015-10-20 00:14:59 -07:00 committed by Commit bot
parent 9393e59d23
commit 148e51b3f3

View File

@ -29,7 +29,7 @@ extern "C" V8_NORETURN void V8_Fatal(const char* file, int line,
V8_Fatal("", 0, "%s", (msg))
#define UNIMPLEMENTED() \
V8_Fatal("", 0, "unimplemented code")
#define UNREACHABLE() ((void) 0)
#define UNREACHABLE() V8_Fatal("", 0, "unreachable code")
#endif