[api] Fix -Wmaybe-uninitialized warning

Add a default clause to the switch statement in debug::GetBuiltin() and
abort if it is reached.

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: I8895497b64ccd3b8eb23d281b8bca4405a5c3959
Reviewed-on: https://chromium-review.googlesource.com/574172
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Commit-Queue: Ben Noordhuis <info@bnoordhuis.nl>
Cr-Commit-Position: refs/heads/master@{#46712}
This commit is contained in:
Ben Noordhuis 2017-07-17 13:09:37 +02:00 committed by Commit Bot
parent 2064c1f920
commit 14324a3822

View File

@ -9822,6 +9822,8 @@ Local<Function> debug::GetBuiltin(Isolate* v8_isolate, Builtin builtin) {
case kObjectGetOwnPropertySymbols:
name = i::Builtins::kObjectGetOwnPropertySymbols;
break;
default:
UNREACHABLE();
}
i::Handle<i::Code> call_code(isolate->builtins()->builtin(name));
i::Handle<i::JSFunction> fun =