deps: V8: backport 844fe8f7d965
Original commit message:
Make StringBuffer::string return a StringView instead of a reference.
A StringView is pretty light, so this should be similar to
how absl::string_view is typically used, e.g. see the guidance here:
https://github.com/abseil/abseil-cpp/blob/master/absl/strings/string_view.h
I suspect this reasoning holds even though StringView (defined
just above StringBuffer in v8-inspector.h) carries an additional bool.
This yields a small simplification of the StringBuffer implementations.
Change-Id: I03f850049afe2327913070838f39649fcdfa6fa8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2045110
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by:
Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66858}
(Neighbouring-line conflicts were resolved while backporting.)
Refs: https://github.com/v8/v8/commit/844fe8f7d965fcb305bd1b71fe6b34628fc4d1fd
PR-URL: https://github.com/nodejs/node/pull/32885
Reviewed-By:
Michaël Zasso <targos@protonmail.com>
Reviewed-By:
Ujjwal Sharma <ryzokuken@disroot.org>
Reviewed-By:
Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By:
Beth Griggs <Bethany.Griggs@uk.ibm.com>
parent
1b787855
Please register or sign in to comment