From 4c451ba43b19c2679467bbb7d7502b3596224038 Mon Sep 17 00:00:00 2001 From: Adam Klein Date: Wed, 17 Jan 2018 21:06:27 +0000 Subject: Pass Isolate to v8::String::Utf8Value API The non-Isolate version will soon be deprecated. Bug: v8:7269, v8:7282 Change-Id: I204e45bd73f5b809d6c44b77bbcf62d32e7ccbec Reviewed-on: https://pdfium-review.googlesource.com/23058 Reviewed-by: dsinclair Reviewed-by: Jochen Eisinger Commit-Queue: Jochen Eisinger --- fxjs/cfxjse_class.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fxjs/cfxjse_class.cpp') diff --git a/fxjs/cfxjse_class.cpp b/fxjs/cfxjse_class.cpp index 9515ef4b74..dd2181b853 100644 --- a/fxjs/cfxjse_class.cpp +++ b/fxjs/cfxjse_class.cpp @@ -81,7 +81,7 @@ void DynPropGetterAdapter_MethodCallback( hCallBackInfo->GetInternalField(1).As(); ASSERT(lpClass && !hPropName.IsEmpty()); - v8::String::Utf8Value szPropName(hPropName); + v8::String::Utf8Value szPropName(info.GetIsolate(), hPropName); WideString szFxPropName = WideString::FromUTF8(*szPropName); CJS_Return result = lpClass->dynMethodCall(info, szFxPropName); @@ -168,7 +168,7 @@ void NamedPropertyQueryCallback( info.Data().As()->Value()); v8::Isolate* pIsolate = info.GetIsolate(); v8::HandleScope scope(pIsolate); - v8::String::Utf8Value szPropName(property); + v8::String::Utf8Value szPropName(pIsolate, property); ByteStringView szFxPropName(*szPropName, szPropName.length()); auto lpThisValue = pdfium::MakeUnique(info.GetIsolate()); lpThisValue->ForceSetValue(thisObject); @@ -186,7 +186,7 @@ void NamedPropertyGetterCallback( v8::Local thisObject = info.Holder(); const FXJSE_CLASS_DESCRIPTOR* lpClass = static_cast( info.Data().As()->Value()); - v8::String::Utf8Value szPropName(property); + v8::String::Utf8Value szPropName(info.GetIsolate(), property); ByteStringView szFxPropName(*szPropName, szPropName.length()); auto lpThisValue = pdfium::MakeUnique(info.GetIsolate()); lpThisValue->ForceSetValue(thisObject); @@ -203,7 +203,7 @@ void NamedPropertySetterCallback( v8::Local thisObject = info.Holder(); const FXJSE_CLASS_DESCRIPTOR* lpClass = static_cast( info.Data().As()->Value()); - v8::String::Utf8Value szPropName(property); + v8::String::Utf8Value szPropName(info.GetIsolate(), property); ByteStringView szFxPropName(*szPropName, szPropName.length()); auto lpThisValue = pdfium::MakeUnique(info.GetIsolate()); lpThisValue->ForceSetValue(thisObject); -- cgit v1.2.3