| Index: src/crankshaft/hydrogen-instructions.cc
|
| diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc
|
| index fb810ff16f12cdc2af37b50b54209a9aa8de67b6..fd5c5c54bfc66c8368483f628f5926e7f1c246ae 100644
|
| --- a/src/crankshaft/hydrogen-instructions.cc
|
| +++ b/src/crankshaft/hydrogen-instructions.cc
|
| @@ -2414,7 +2414,7 @@ Maybe<HConstant*> HConstant::CopyToTruncatedNumber(Isolate* isolate,
|
| new(zone) HConstant(1) : new(zone) HConstant(0);
|
| } else if (handle->IsUndefined(isolate)) {
|
| res = new (zone) HConstant(std::numeric_limits<double>::quiet_NaN());
|
| - } else if (handle->IsNull()) {
|
| + } else if (handle->IsNull(isolate)) {
|
| res = new(zone) HConstant(0);
|
| } else if (handle->IsString()) {
|
| res = new(zone) HConstant(String::ToNumber(Handle<String>::cast(handle)));
|
|
|