[temporal] Use const ref consistently for std::vector arguments
Change-Id: I7ecdfa6ee865d87851bf1975ddd48bd0bfcd39ba Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3805822 Reviewed-by: Frank Tang <ftang@chromium.org> Commit-Queue: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#82410}
This commit is contained in:
parent
cf765fc348
commit
338869fc03
@ -47,7 +47,7 @@ MaybeHandle<JSReceiver> CoerceOptionsToObject(Isolate* isolate,
|
||||
|
||||
Maybe<bool> GetStringOption(Isolate* isolate, Handle<JSReceiver> options,
|
||||
const char* property,
|
||||
std::vector<const char*> values,
|
||||
const std::vector<const char*>& values,
|
||||
const char* method_name,
|
||||
std::unique_ptr<char[]>* result) {
|
||||
Handle<String> property_str =
|
||||
|
@ -36,7 +36,7 @@ V8_WARN_UNUSED_RESULT MaybeHandle<JSReceiver> CoerceOptionsToObject(
|
||||
// printing the error message.
|
||||
V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT Maybe<bool> GetStringOption(
|
||||
Isolate* isolate, Handle<JSReceiver> options, const char* property,
|
||||
std::vector<const char*> values, const char* method_name,
|
||||
const std::vector<const char*>& values, const char* method_name,
|
||||
std::unique_ptr<char[]>* result);
|
||||
|
||||
// A helper template to get string from option into a enum.
|
||||
|
Loading…
Reference in New Issue
Block a user