| Index: include/v8-util.h
|
| diff --git a/include/v8-util.h b/include/v8-util.h
|
| index a04a5e84f80dc47e05cd65757e0fe0da1d80dbf5..8b73f1230cf373c86a745472576d0e28a4a6657d 100644
|
| --- a/include/v8-util.h
|
| +++ b/include/v8-util.h
|
| @@ -25,11 +25,11 @@ enum PersistentContainerCallbackType {
|
| kNotWeak,
|
| // These correspond to v8::WeakCallbackType
|
| kWeakWithParameter,
|
| - kWeakWithInternalFields,
|
| + kWeakWithEmbedderFields,
|
| + kWeakWithInternalFields = kWeakWithEmbedderFields, // Deprecate.
|
| kWeak = kWeakWithParameter // For backwards compatibility. Deprecate.
|
| };
|
|
|
| -
|
| /**
|
| * A default trait implemenation for PersistentValueMap which uses std::map
|
| * as a backing map.
|
| @@ -462,7 +462,7 @@ class GlobalValueMap : public PersistentValueMapBase<K, V, Traits> {
|
| if (Traits::kCallbackType != kNotWeak) {
|
| WeakCallbackType callback_type =
|
| Traits::kCallbackType == kWeakWithInternalFields
|
| - ? WeakCallbackType::kInternalFields
|
| + ? WeakCallbackType::kEmbedderFields
|
| : WeakCallbackType::kParameter;
|
| Local<V> value(Local<V>::New(this->isolate(), *persistent));
|
| persistent->template SetWeak<typename Traits::WeakCallbackDataType>(
|
|
|