| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 51fb1330614237fe6a1e735d9ff5d44798fd552e..30caf430782523f98b765a66147a3048fb7e7bed 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -3192,12 +3192,13 @@ class FunctionCallbackInfo {
|
| Local<Function> Callee() const);
|
| V8_INLINE Local<Object> This() const;
|
| V8_INLINE Local<Object> Holder() const;
|
| + V8_INLINE Local<Value> NewTarget() const;
|
| V8_INLINE bool IsConstructCall() const;
|
| V8_INLINE Local<Value> Data() const;
|
| V8_INLINE Isolate* GetIsolate() const;
|
| V8_INLINE ReturnValue<T> GetReturnValue() const;
|
| // This shouldn't be public, but the arm compiler needs it.
|
| - static const int kArgsLength = 7;
|
| + static const int kArgsLength = 8;
|
|
|
| protected:
|
| friend class internal::FunctionCallbackArguments;
|
| @@ -3209,6 +3210,7 @@ class FunctionCallbackInfo {
|
| static const int kDataIndex = 4;
|
| static const int kCalleeIndex = 5;
|
| static const int kContextSaveIndex = 6;
|
| + static const int kNewTargetIndex = 7;
|
|
|
| V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args,
|
| internal::Object** values,
|
| @@ -7903,8 +7905,13 @@ Local<Object> FunctionCallbackInfo<T>::Holder() const {
|
| &implicit_args_[kHolderIndex]));
|
| }
|
|
|
| +template <typename T>
|
| +Local<Value> FunctionCallbackInfo<T>::NewTarget() const {
|
| + return Local<Value>(
|
| + reinterpret_cast<Value*>(&implicit_args_[kNewTargetIndex]));
|
| +}
|
|
|
| -template<typename T>
|
| +template <typename T>
|
| Local<Value> FunctionCallbackInfo<T>::Data() const {
|
| return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]));
|
| }
|
|
|