Commit d3bf70b2 authored by Shu-yu Guo's avatar Shu-yu Guo Committed by Commit Bot

Add V8 use counter for var redeclarations of catch binding

Bug: v8:10516
Change-Id: Id26b70b70836a015d9c532b82211d63ef1b999b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2189975
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Reviewed-by: default avatarMike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#769899}
parent 964e827c
...@@ -2638,6 +2638,7 @@ enum WebFeature { ...@@ -2638,6 +2638,7 @@ enum WebFeature {
kPopupGestureTapExceedsOwnerWindowBounds = 3301, kPopupGestureTapExceedsOwnerWindowBounds = 3301,
kPopupMouseDownExceedsOwnerWindowBounds = 3302, kPopupMouseDownExceedsOwnerWindowBounds = 3302,
kPopupMouseWheelExceedsOwnerWindowBounds = 3303, kPopupMouseWheelExceedsOwnerWindowBounds = 3303,
kV8VarRedeclaredCatchBinding = 3304,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
......
...@@ -327,6 +327,9 @@ void UseCounterCallback(v8::Isolate* isolate, ...@@ -327,6 +327,9 @@ void UseCounterCallback(v8::Isolate* isolate,
blink_feature = blink_feature =
WebFeature::kV8InvalidatedTypedArraySpeciesLookupChainProtector; WebFeature::kV8InvalidatedTypedArraySpeciesLookupChainProtector;
break; break;
case v8::Isolate::kVarRedeclaredCatchBinding:
blink_feature = WebFeature::kV8VarRedeclaredCatchBinding;
break;
default: default:
// This can happen if V8 has added counters that this version of Blink // This can happen if V8 has added counters that this version of Blink
......
...@@ -27402,6 +27402,7 @@ Called by update_use_counter_feature_enum.py.--> ...@@ -27402,6 +27402,7 @@ Called by update_use_counter_feature_enum.py.-->
<int value="3301" label="PopupGestureTapExceedsOwnerWindowBounds"/> <int value="3301" label="PopupGestureTapExceedsOwnerWindowBounds"/>
<int value="3302" label="PopupMouseDownExceedsOwnerWindowBounds"/> <int value="3302" label="PopupMouseDownExceedsOwnerWindowBounds"/>
<int value="3303" label="PopupMouseWheelExceedsOwnerWindowBounds"/> <int value="3303" label="PopupMouseWheelExceedsOwnerWindowBounds"/>
<int value="3304" label="V8VarRedeclaredCatchBinding"/>
</enum> </enum>
<enum name="FeaturePolicyAllowlistType"> <enum name="FeaturePolicyAllowlistType">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment