| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index e3d52548cc7d3854981fffe805d8c35045b46dce..0272c0f664f1700d002c88076618b1b1b447ded1 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2785,7 +2785,7 @@ class FunctionCallbackInfo {
|
| internal::Object** implicit_args_;
|
| internal::Object** values_;
|
| int length_;
|
| - bool is_construct_call_;
|
| + int is_construct_call_;
|
| };
|
|
|
|
|
| @@ -6670,7 +6670,7 @@ internal::Object* ReturnValue<T>::GetDefaultValue() {
|
| }
|
|
|
|
|
| -template<typename T>
|
| +template <typename T>
|
| FunctionCallbackInfo<T>::FunctionCallbackInfo(internal::Object** implicit_args,
|
| internal::Object** values,
|
| int length,
|
| @@ -6678,7 +6678,7 @@ FunctionCallbackInfo<T>::FunctionCallbackInfo(internal::Object** implicit_args,
|
| : implicit_args_(implicit_args),
|
| values_(values),
|
| length_(length),
|
| - is_construct_call_(is_construct_call) { }
|
| + is_construct_call_(is_construct_call ? 1 : 0) {}
|
|
|
|
|
| template<typename T>
|
| @@ -6728,7 +6728,7 @@ ReturnValue<T> FunctionCallbackInfo<T>::GetReturnValue() const {
|
|
|
| template<typename T>
|
| bool FunctionCallbackInfo<T>::IsConstructCall() const {
|
| - return is_construct_call_;
|
| + return static_cast<bool>(is_construct_call_ & 0x1);
|
| }
|
|
|
|
|
|
|