| Index: Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestNamedConstructor.cpp b/Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| index 393b4dc6a1b38cbac0980e1719926c5dadeaa7eb..2f21e5241b9374f9fb3a4ef6e6925531fca7efc1 100644
|
| --- a/Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| +++ b/Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| @@ -127,11 +127,11 @@ v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::GetTemplate(
|
|
|
| TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
|
| v8::HandleScope scope(isolate);
|
| - result = v8::FunctionTemplate::New(V8TestNamedConstructorConstructorCallback);
|
| + result = v8::FunctionTemplate::New(isolate, V8TestNamedConstructorConstructorCallback);
|
|
|
| v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate();
|
| instanceTemplate->SetInternalFieldCount(V8TestNamedConstructor::internalFieldCount);
|
| - result->SetClassName(v8::String::NewSymbol("TestNamedConstructor"));
|
| + result->SetClassName(v8::String::NewFromUtf8(isolate, "TestNamedConstructor", v8::String::kInternalizedString));
|
| result->Inherit(V8TestNamedConstructor::GetTemplate(isolate, currentWorldType));
|
| data->setPrivateTemplate(currentWorldType, &privateTemplateUniqueKey, result);
|
|
|
| @@ -155,7 +155,7 @@ static v8::Handle<v8::FunctionTemplate> ConfigureV8TestNamedConstructorTemplate(
|
| 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;
|
| }
|
|
|
| @@ -167,11 +167,11 @@ v8::Handle<v8::FunctionTemplate> V8TestNamedConstructor::GetTemplate(v8::Isolate
|
| 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 =
|
| ConfigureV8TestNamedConstructorTemplate(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 V8TestNamedConstructor::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate, WrapperWorldType currentWorldType)
|
|
|