| Index: Source/bindings/tests/results/V8TestCustomWrapInterface.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestCustomWrapInterface.cpp b/Source/bindings/tests/results/V8TestCustomWrapInterface.cpp
|
| index 794ad1b2540ebb96392bad26af437f323b44610b..076a55c5a3e32149c837c5db48197e97d6adbf9e 100644
|
| --- a/Source/bindings/tests/results/V8TestCustomWrapInterface.cpp
|
| +++ b/Source/bindings/tests/results/V8TestCustomWrapInterface.cpp
|
| @@ -90,7 +90,7 @@ static v8::Handle<v8::FunctionTemplate> ConfigureV8TestCustomWrapInterfaceTempla
|
| UNUSED_PARAM(prototypeTemplate);
|
|
|
| // Custom toString template
|
| - functionTemplate->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->toStringTemplate());
|
| + functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::String::kInternalizedString), V8PerIsolateData::current()->toStringTemplate());
|
| return functionTemplate;
|
| }
|
|
|
| @@ -102,11 +102,11 @@ v8::Handle<v8::FunctionTemplate> V8TestCustomWrapInterface::GetTemplate(v8::Isol
|
| return result->value.newLocal(isolate);
|
|
|
| TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
|
| - v8::HandleScope handleScope(isolate);
|
| - v8::Handle<v8::FunctionTemplate> templ =
|
| + v8::EscapableHandleScope handleScope(isolate);
|
| + v8::Local<v8::FunctionTemplate> templ =
|
| ConfigureV8TestCustomWrapInterfaceTemplate(data->rawTemplate(&wrapperTypeInfo, currentWorldType), isolate, currentWorldType);
|
| data->templateMap(currentWorldType).add(&wrapperTypeInfo, UnsafePersistent<v8::FunctionTemplate>(isolate, templ));
|
| - return handleScope.Close(templ);
|
| + return handleScope.Escape(templ);
|
| }
|
|
|
| bool V8TestCustomWrapInterface::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate, WrapperWorldType currentWorldType)
|
|
|