Remove bool arg from ReentrantHasObjectOwnPropertyHelper()
Only caller always passes it as false.
Change-Id: Iff0b7602318f47ffff33f0aebecfd111c8e1b846
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/81111
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/fxv8.cpp b/fxjs/fxv8.cpp
index 551338d..e139e26 100644
--- a/fxjs/fxv8.cpp
+++ b/fxjs/fxv8.cpp
@@ -234,8 +234,7 @@
bool ReentrantHasObjectOwnPropertyHelper(v8::Isolate* pIsolate,
v8::Local<v8::Object> pObj,
- ByteStringView bsUTF8PropertyName,
- bool bUseTypeGetter) {
+ ByteStringView bsUTF8PropertyName) {
if (pObj.IsEmpty())
return false;
@@ -243,9 +242,7 @@
v8::Local<v8::Context> pContext = pIsolate->GetCurrentContext();
v8::Local<v8::String> hKey =
fxv8::NewStringHelper(pIsolate, bsUTF8PropertyName);
- return pObj->HasRealNamedProperty(pContext, hKey).FromJust() ||
- (bUseTypeGetter &&
- pObj->HasOwnProperty(pContext, hKey).FromMaybe(false));
+ return pObj->HasRealNamedProperty(pContext, hKey).FromJust();
}
bool ReentrantSetObjectOwnPropertyHelper(v8::Isolate* pIsolate,