| Index: Source/bindings/v8/V8PerContextData.cpp
|
| diff --git a/Source/bindings/v8/V8PerContextData.cpp b/Source/bindings/v8/V8PerContextData.cpp
|
| index c2edd8d4e55be2084afc37e5cfa7bf25347a8c38..9edbdbc299907e6a9befacc78437f4abd60cbee6 100644
|
| --- a/Source/bindings/v8/V8PerContextData.cpp
|
| +++ b/Source/bindings/v8/V8PerContextData.cpp
|
| @@ -152,13 +152,13 @@ CustomElementBinding* V8PerContextData::customElementBinding(CustomElementDefini
|
| }
|
|
|
|
|
| -static v8::Handle<v8::Value> createDebugData(const char* worldName, int debugId)
|
| +static v8::Handle<v8::Value> createDebugData(const char* worldName, int debugId)
|
| {
|
| char buffer[32];
|
| unsigned wanted;
|
| if (debugId == -1)
|
| wanted = snprintf(buffer, sizeof(buffer), "%s", worldName);
|
| - else
|
| + else
|
| wanted = snprintf(buffer, sizeof(buffer), "%s,%d", worldName, debugId);
|
|
|
| if (wanted < sizeof(buffer))
|
| @@ -179,7 +179,7 @@ static void setDebugData(v8::Handle<v8::Context> context, v8::Handle<v8::Value>
|
| context->SetEmbedderData(v8ContextDebugIdIndex, value);
|
| }
|
|
|
| -bool V8PerContextDebugData::setContextDebugData(v8::Handle<v8::Context> context, const char* worldName, int debugId)
|
| +bool V8PerContextDebugData::setContextDebugData(v8::Handle<v8::Context> context, const char* worldName, int debugId)
|
| {
|
| if (!debugData(context)->IsUndefined())
|
| return false;
|
| @@ -189,7 +189,7 @@ bool V8PerContextDebugData::setContextDebugData(v8::Handle<v8::Context> context,
|
| return true;
|
| }
|
|
|
| -int V8PerContextDebugData::contextDebugId(v8::Handle<v8::Context> context)
|
| +int V8PerContextDebugData::contextDebugId(v8::Handle<v8::Context> context)
|
| {
|
| v8::HandleScope scope;
|
| v8::Handle<v8::Value> data = debugData(context);
|
|
|