| Index: Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8PromiseCustom.cpp b/Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| index 5a919444edb6b4363c7838d1d2d73251fc7b02dd..3587c8505e98a9cfe15b19470b398cf7524effed 100644
|
| --- a/Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| @@ -73,21 +73,21 @@ v8::Local<v8::ObjectTemplate> cachedObjectTemplate(void* privateTemplateUniqueKe
|
| v8::Local<v8::ObjectTemplate> promiseAllEnvironmentObjectTemplate(v8::Isolate* isolate)
|
| {
|
| // This is only for getting a unique pointer which we can pass to privateTemplate.
|
| - static int privateTemplateUniqueKey = 0;
|
| + static int privateTemplateUniqueKey;
|
| return cachedObjectTemplate(&privateTemplateUniqueKey, V8PromiseCustom::PromiseAllEnvironmentFieldCount, isolate);
|
| }
|
|
|
| v8::Local<v8::ObjectTemplate> primitiveWrapperObjectTemplate(v8::Isolate* isolate)
|
| {
|
| // This is only for getting a unique pointer which we can pass to privateTemplate.
|
| - static int privateTemplateUniqueKey = 0;
|
| + static int privateTemplateUniqueKey;
|
| return cachedObjectTemplate(&privateTemplateUniqueKey, V8PromiseCustom::PrimitiveWrapperFieldCount, isolate);
|
| }
|
|
|
| v8::Local<v8::ObjectTemplate> internalObjectTemplate(v8::Isolate* isolate)
|
| {
|
| // This is only for getting a unique pointer which we can pass to privateTemplate.
|
| - static int privateTemplateUniqueKey = 0;
|
| + static int privateTemplateUniqueKey;
|
| return cachedObjectTemplate(&privateTemplateUniqueKey, V8PromiseCustom::InternalFieldCount, isolate);
|
| }
|
|
|
|
|