Index: Source/bindings/core/v8/custom/V8HTMLAllCollectionCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8HTMLAllCollectionCustom.cpp b/Source/bindings/core/v8/custom/V8HTMLAllCollectionCustom.cpp |
index 16f6044a9c2a7ccd277e375e03f6671b94745fbf..f973a79c4213046eb16d405e38986aa9b4482c9a 100644 |
--- a/Source/bindings/core/v8/custom/V8HTMLAllCollectionCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8HTMLAllCollectionCustom.cpp |
@@ -98,7 +98,7 @@ void V8HTMLAllCollection::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va |
HTMLAllCollection* impl = V8HTMLAllCollection::toImpl(info.Holder()); |
Node& ownerNode = impl->ownerNode(); |
- UseCounter::count(ownerNode.document(), UseCounter::DocumentAllLegacyCall); |
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), ownerNode.document(), UseCounter::DocumentAllLegacyCall); |
if (info.Length() == 1) { |
v8SetReturnValue(info, getItem(impl, info[0], info)); |