| Index: Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp
|
| diff --git a/Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp b/Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp
|
| index cac66e600ec3af618c93124fbbfd2a6ed1195edc..96c7ecf25d136f449934981f6dc6b4035fdca12c 100644
|
| --- a/Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp
|
| +++ b/Source/bindings/core/v8/custom/V8MessageChannelCustom.cpp
|
| @@ -44,17 +44,17 @@ void V8MessageChannel::constructorCustom(const v8::FunctionCallbackInfo<v8::Valu
|
| {
|
| ExecutionContext* context = currentExecutionContext(info.GetIsolate());
|
|
|
| - RefPtrWillBeRawPtr<MessageChannel> obj = MessageChannel::create(context);
|
| + MessageChannel* channel = MessageChannel::create(context);
|
|
|
| v8::Local<v8::Object> wrapper = info.Holder();
|
|
|
| // Create references from the MessageChannel wrapper to the two
|
| // MessagePort wrappers to make sure that the MessagePort wrappers
|
| // stay alive as long as the MessageChannel wrapper is around.
|
| - V8HiddenValue::setHiddenValue(info.GetIsolate(), wrapper, V8HiddenValue::port1(info.GetIsolate()), toV8(obj->port1(), info.Holder(), info.GetIsolate()));
|
| - V8HiddenValue::setHiddenValue(info.GetIsolate(), wrapper, V8HiddenValue::port2(info.GetIsolate()), toV8(obj->port2(), info.Holder(), info.GetIsolate()));
|
| + V8HiddenValue::setHiddenValue(info.GetIsolate(), wrapper, V8HiddenValue::port1(info.GetIsolate()), toV8(channel->port1(), info.Holder(), info.GetIsolate()));
|
| + V8HiddenValue::setHiddenValue(info.GetIsolate(), wrapper, V8HiddenValue::port2(info.GetIsolate()), toV8(channel->port2(), info.Holder(), info.GetIsolate()));
|
|
|
| - V8DOMWrapper::associateObjectWithWrapper(info.GetIsolate(), obj.get(), &wrapperTypeInfo, wrapper);
|
| + V8DOMWrapper::associateObjectWithWrapper(info.GetIsolate(), channel, &wrapperTypeInfo, wrapper);
|
| info.GetReturnValue().Set(wrapper);
|
| }
|
|
|
|
|