Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index ca19e05be9789284aac1f5743cda6c8282b71749..694e705457c1b62c50f382d84ca3cc91e00c477c 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_; |
}; |
@@ -6672,7 +6672,7 @@ internal::Object* ReturnValue<T>::GetDefaultValue() { |
} |
-template<typename T> |
+template <typename T> |
FunctionCallbackInfo<T>::FunctionCallbackInfo(internal::Object** implicit_args, |
internal::Object** values, |
int length, |
@@ -6680,7 +6680,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> |
@@ -6730,7 +6730,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); |
} |