[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:
parent
2064c1f920
commit
14324a3822
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user