Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! deps: provide more V8 backwards compatibility
  • Loading branch information
addaleax committed Oct 5, 2018
commit cf7bb9707228241aa876281ce54f2c9f949b5e40
4 changes: 2 additions & 2 deletions deps/v8/src/api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3890,13 +3890,13 @@ void v8::RegExp::CheckCast(v8::Value* that) {

bool Value::BooleanValue() const {
return BooleanValue(Isolate::GetCurrent()->GetCurrentContext())
.FromMaybe(false);
.FromJust();
}


double Value::NumberValue() const {
return NumberValue(Isolate::GetCurrent()->GetCurrentContext())
.FromMaybe(0.0);
.FromMaybe(std::numeric_limits<double>::quiet_NaN());
}


Expand Down