diff options
Diffstat (limited to 'fxjs/cfxjse_value.cpp')
-rw-r--r-- | fxjs/cfxjse_value.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fxjs/cfxjse_value.cpp b/fxjs/cfxjse_value.cpp index 8bc243e097..a84b571223 100644 --- a/fxjs/cfxjse_value.cpp +++ b/fxjs/cfxjse_value.cpp @@ -406,8 +406,7 @@ bool CFXJSE_Value::ToBoolean() const { CFXJSE_ScopeUtil_IsolateHandleRootContext scope(GetIsolate()); v8::Local<v8::Value> hValue = v8::Local<v8::Value>::New(GetIsolate(), m_hValue); - return hValue->BooleanValue(GetIsolate()->GetCurrentContext()) - .FromMaybe(false); + return hValue->BooleanValue(GetIsolate()); } float CFXJSE_Value::ToFloat() const { |