Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 222dd2a2cfb937762db911178aac35ac5c556ca7..9bcb7ef18443817b6a691730bf013bc53954d3fe 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -3015,8 +3015,9 @@ class V8_EXPORT Map : public Object { |
* in the same manner as the array returned from AsArray(). |
* Guaranteed to be side-effect free if the array contains no holes. |
*/ |
- static V8_WARN_UNUSED_RESULT MaybeLocal<Map> FromArray(Local<Context> context, |
- Local<Array> array); |
+ static V8_WARN_UNUSED_RESULT V8_DEPRECATED( |
+ "Use mutation methods instead", |
+ MaybeLocal<Map> FromArray(Local<Context> context, Local<Array> array)); |
V8_INLINE static Map* Cast(Value* obj); |
@@ -3054,8 +3055,9 @@ class V8_EXPORT Set : public Object { |
* Creates a new Set containing the items in array. |
* Guaranteed to be side-effect free if the array contains no holes. |
*/ |
- static V8_WARN_UNUSED_RESULT MaybeLocal<Set> FromArray(Local<Context> context, |
- Local<Array> array); |
+ static V8_WARN_UNUSED_RESULT V8_DEPRECATED( |
+ "Use mutation methods instead", |
+ MaybeLocal<Set> FromArray(Local<Context> context, Local<Array> array)); |
V8_INLINE static Set* Cast(Value* obj); |