@@ -1019,8 +1019,12 @@ class V8_EXPORT PrimitiveArray {
1019
1019
public:
1020
1020
static Local<PrimitiveArray> New (Isolate* isolate, int length);
1021
1021
int Length () const ;
1022
- void Set (int index, Local<Primitive> item);
1023
- Local<Primitive> Get (int index);
1022
+ V8_DEPRECATED (" Use Isolate* version" ,
1023
+ void Set (int index, Local<Primitive> item));
1024
+ V8_DEPRECATED (" Use Isolate* version" ,
1025
+ Local<Primitive> Get (int index));
1026
+ void Set (Isolate* isolate, int index, Local<Primitive> item);
1027
+ Local<Primitive> Get (Isolate* isolate, int index);
1024
1028
};
1025
1029
1026
1030
/* *
@@ -1735,8 +1739,8 @@ class V8_EXPORT StackTrace {
1735
1739
/* *
1736
1740
* Returns a StackFrame at a particular index.
1737
1741
*/
1738
- V8_DEPRECATE_SOON (" Use Isolate version" ,
1739
- Local<StackFrame> GetFrame (uint32_t index) const );
1742
+ V8_DEPRECATED (" Use Isolate version" ,
1743
+ Local<StackFrame> GetFrame (uint32_t index) const );
1740
1744
Local<StackFrame> GetFrame (Isolate* isolate, uint32_t index) const ;
1741
1745
1742
1746
/* *
@@ -2432,25 +2436,25 @@ class V8_EXPORT Value : public Data {
2432
2436
Local<Context> context) const ;
2433
2437
V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32 (Local<Context> context) const ;
2434
2438
2435
- V8_DEPRECATE_SOON (" Use maybe version" ,
2436
- Local<Boolean > ToBoolean (Isolate* isolate) const );
2437
- V8_DEPRECATE_SOON (" Use maybe version" ,
2438
- Local<Number> ToNumber (Isolate* isolate) const );
2439
- V8_DEPRECATE_SOON (" Use maybe version" ,
2440
- Local<String> ToString (Isolate* isolate) const );
2441
- V8_DEPRECATE_SOON (" Use maybe version" ,
2442
- Local<Object> ToObject (Isolate* isolate) const );
2443
- V8_DEPRECATE_SOON (" Use maybe version" ,
2444
- Local<Integer> ToInteger (Isolate* isolate) const );
2445
- V8_DEPRECATE_SOON (" Use maybe version" ,
2446
- Local<Int32> ToInt32 (Isolate* isolate) const );
2447
-
2448
- inline V8_DEPRECATE_SOON (" Use maybe version" ,
2449
- Local<Boolean > ToBoolean () const );
2450
- inline V8_DEPRECATE_SOON (" Use maybe version" , Local<String> ToString () const );
2451
- inline V8_DEPRECATE_SOON (" Use maybe version" , Local<Object> ToObject () const );
2452
- inline V8_DEPRECATE_SOON (" Use maybe version" ,
2453
- Local<Integer> ToInteger () const );
2439
+ V8_DEPRECATED (" Use maybe version" ,
2440
+ Local<Boolean > ToBoolean (Isolate* isolate) const );
2441
+ V8_DEPRECATED (" Use maybe version" ,
2442
+ Local<Number> ToNumber (Isolate* isolate) const );
2443
+ V8_DEPRECATED (" Use maybe version" ,
2444
+ Local<String> ToString (Isolate* isolate) const );
2445
+ V8_DEPRECATED (" Use maybe version" ,
2446
+ Local<Object> ToObject (Isolate* isolate) const );
2447
+ V8_DEPRECATED (" Use maybe version" ,
2448
+ Local<Integer> ToInteger (Isolate* isolate) const );
2449
+ V8_DEPRECATED (" Use maybe version" ,
2450
+ Local<Int32> ToInt32 (Isolate* isolate) const );
2451
+
2452
+ inline V8_DEPRECATED (" Use maybe version" ,
2453
+ Local<Boolean > ToBoolean () const );
2454
+ inline V8_DEPRECATED (" Use maybe version" , Local<String> ToString () const );
2455
+ inline V8_DEPRECATED (" Use maybe version" , Local<Object> ToObject () const );
2456
+ inline V8_DEPRECATED (" Use maybe version" ,
2457
+ Local<Integer> ToInteger () const );
2454
2458
2455
2459
/* *
2456
2460
* Attempts to convert a string to an array index.
@@ -2467,14 +2471,14 @@ class V8_EXPORT Value : public Data {
2467
2471
Local<Context> context) const ;
2468
2472
V8_WARN_UNUSED_RESULT Maybe<int32_t > Int32Value (Local<Context> context) const ;
2469
2473
2470
- V8_DEPRECATE_SOON (" Use maybe version" , bool BooleanValue () const );
2471
- V8_DEPRECATE_SOON (" Use maybe version" , double NumberValue () const );
2472
- V8_DEPRECATE_SOON (" Use maybe version" , int64_t IntegerValue () const );
2473
- V8_DEPRECATE_SOON (" Use maybe version" , uint32_t Uint32Value () const );
2474
- V8_DEPRECATE_SOON (" Use maybe version" , int32_t Int32Value () const );
2474
+ V8_DEPRECATED (" Use maybe version" , bool BooleanValue () const );
2475
+ V8_DEPRECATED (" Use maybe version" , double NumberValue () const );
2476
+ V8_DEPRECATED (" Use maybe version" , int64_t IntegerValue () const );
2477
+ V8_DEPRECATED (" Use maybe version" , uint32_t Uint32Value () const );
2478
+ V8_DEPRECATED (" Use maybe version" , int32_t Int32Value () const );
2475
2479
2476
2480
/* * JS == */
2477
- V8_DEPRECATE_SOON (" Use maybe version" , bool Equals (Local<Value> that) const );
2481
+ V8_DEPRECATED (" Use maybe version" , bool Equals (Local<Value> that) const );
2478
2482
V8_WARN_UNUSED_RESULT Maybe<bool > Equals (Local<Context> context,
2479
2483
Local<Value> that) const ;
2480
2484
bool StrictEquals (Local<Value> that) const ;
@@ -2580,7 +2584,7 @@ class V8_EXPORT String : public Name {
2580
2584
* Returns the number of bytes in the UTF-8 encoded
2581
2585
* representation of this string.
2582
2586
*/
2583
- V8_DEPRECATE_SOON (" Use Isolate version instead" , int Utf8Length () const );
2587
+ V8_DEPRECATED (" Use Isolate version instead" , int Utf8Length () const );
2584
2588
2585
2589
int Utf8Length (Isolate* isolate) const ;
2586
2590
@@ -2638,23 +2642,23 @@ class V8_EXPORT String : public Name {
2638
2642
// 16-bit character codes.
2639
2643
int Write (Isolate* isolate, uint16_t * buffer, int start = 0 , int length = -1 ,
2640
2644
int options = NO_OPTIONS) const ;
2641
- V8_DEPRECATE_SOON (" Use Isolate* version" ,
2642
- int Write (uint16_t * buffer, int start = 0 , int length = -1 ,
2643
- int options = NO_OPTIONS) const );
2645
+ V8_DEPRECATED (" Use Isolate* version" ,
2646
+ int Write (uint16_t * buffer, int start = 0 , int length = -1 ,
2647
+ int options = NO_OPTIONS) const );
2644
2648
// One byte characters.
2645
2649
int WriteOneByte (Isolate* isolate, uint8_t * buffer, int start = 0 ,
2646
2650
int length = -1 , int options = NO_OPTIONS) const ;
2647
- V8_DEPRECATE_SOON (" Use Isolate* version" ,
2648
- int WriteOneByte (uint8_t * buffer, int start = 0 ,
2649
- int length = -1 , int options = NO_OPTIONS)
2650
- const );
2651
+ V8_DEPRECATED (" Use Isolate* version" ,
2652
+ int WriteOneByte (uint8_t * buffer, int start = 0 ,
2653
+ int length = -1 , int options = NO_OPTIONS)
2654
+ const );
2651
2655
// UTF-8 encoded characters.
2652
2656
int WriteUtf8 (Isolate* isolate, char * buffer, int length = -1 ,
2653
2657
int * nchars_ref = NULL , int options = NO_OPTIONS) const ;
2654
- V8_DEPRECATE_SOON (" Use Isolate* version" ,
2655
- int WriteUtf8 (char * buffer, int length = -1 ,
2656
- int * nchars_ref = NULL ,
2657
- int options = NO_OPTIONS) const );
2658
+ V8_DEPRECATED (" Use Isolate* version" ,
2659
+ int WriteUtf8 (char * buffer, int length = -1 ,
2660
+ int * nchars_ref = NULL ,
2661
+ int options = NO_OPTIONS) const );
2658
2662
2659
2663
/* *
2660
2664
* A zero length string.
@@ -2818,9 +2822,9 @@ class V8_EXPORT String : public Name {
2818
2822
*/
2819
2823
static Local<String> Concat (Isolate* isolate, Local<String> left,
2820
2824
Local<String> right);
2821
- static V8_DEPRECATE_SOON (" Use Isolate* version" ,
2822
- Local<String> Concat (Local<String> left,
2823
- Local<String> right));
2825
+ static V8_DEPRECATED (" Use Isolate* version" ,
2826
+ Local<String> Concat (Local<String> left,
2827
+ Local<String> right));
2824
2828
2825
2829
/* *
2826
2830
* Creates a new external string using the data defined in the given
@@ -5044,7 +5048,9 @@ class V8_EXPORT BooleanObject : public Object {
5044
5048
*/
5045
5049
class V8_EXPORT StringObject : public Object {
5046
5050
public:
5047
- static Local<Value> New (Local<String> value);
5051
+ static Local<Value> New (Isolate* isolate, Local<String> value);
5052
+ V8_DEPRECATED (" Use Isolate* version" ,
5053
+ static Local<Value> New (Local<String> value));
5048
5054
5049
5055
Local<String> ValueOf () const ;
5050
5056
0 commit comments