@@ -1542,7 +1542,8 @@ class V8_EXPORT StackTrace {
1542
1542
* Returns a StackFrame at a particular index.
1543
1543
*/
1544
1544
Local<StackFrame> GetFrame(uint32_t index) const;
1545
-
1545
+ Local<StackFrame> GetFrame(v8::Isolate* isolate, uint32_t index) const { return GetFrame(index); }
1546
+
1546
1547
/**
1547
1548
* Returns the number of StackFrames.
1548
1549
*/
@@ -2006,6 +2007,7 @@ class V8_EXPORT Value : public Data {
2006
2007
V8_WARN_UNUSED_RESULT MaybeLocal<Uint32> ToArrayIndex(
2007
2008
Local<Context> context) const;
2008
2009
2010
+ bool BooleanValue(Isolate* isolate) const { return BooleanValue(); }
2009
2011
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(Local<Context> context) const;
2010
2012
V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
2011
2013
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
@@ -2105,6 +2107,7 @@ class V8_EXPORT String : public Name {
2105
2107
* representation of this string.
2106
2108
*/
2107
2109
int Utf8Length() const;
2110
+ int Utf8Length(Isolate*) const { return Utf8Length(); }
2108
2111
2109
2112
/**
2110
2113
* Returns whether this string is known to contain only one byte data.
@@ -2170,6 +2173,9 @@ class V8_EXPORT String : public Name {
2170
2173
int length = -1,
2171
2174
int* nchars_ref = NULL,
2172
2175
int options = NO_OPTIONS) const;
2176
+ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, int* nchars_ref = NULL, int options = NO_OPTIONS) const {
2177
+ return WriteUtf8(buffer, length, nchars_ref, options);
2178
+ }
2173
2179
2174
2180
/**
2175
2181
* A zero length string.
@@ -2404,6 +2410,7 @@ class V8_EXPORT String : public Name {
2404
2410
class V8_EXPORT Utf8Value {
2405
2411
public:
2406
2412
explicit Utf8Value(Local<v8::Value> obj);
2413
+ explicit Utf8Value(Isolate* isolate, Local<v8::Value> obj);
2407
2414
~Utf8Value();
2408
2415
char* operator*() { return str_; }
2409
2416
const char* operator*() const { return str_; }
@@ -3947,6 +3954,7 @@ class V8_EXPORT NumberObject : public Object {
3947
3954
class V8_EXPORT BooleanObject : public Object {
3948
3955
public:
3949
3956
static Local<Value> New(bool value);
3957
+ static Local<Value> New(Isolate* isolate, bool value) { return New(value); }
3950
3958
3951
3959
bool ValueOf() const;
3952
3960
@@ -3963,6 +3971,7 @@ class V8_EXPORT BooleanObject : public Object {
3963
3971
class V8_EXPORT StringObject : public Object {
3964
3972
public:
3965
3973
static Local<Value> New(Local<String> value);
3974
+ static Local<Value> New(Isolate* isolate, Local<String> value) { return New(value); }
3966
3975
3967
3976
Local<String> ValueOf() const;
3968
3977
@@ -4937,6 +4946,7 @@ class V8_EXPORT Exception {
4937
4946
* or capture the current stack trace if not available.
4938
4947
*/
4939
4948
static Local<Message> CreateMessage(Local<Value> exception);
4949
+ static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception) { return CreateMessage(exception); }
4940
4950
4941
4951
/**
4942
4952
* Returns the original stack trace that was captured at the creation time
0 commit comments