Index: src/builtins/builtins-math.cc |
diff --git a/src/builtins/builtins-math.cc b/src/builtins/builtins-math.cc |
index ee531e4299e9e489c2e2d2348c109a209fa2737a..f4961ca8365ca1e16b8d13b536c938e26c536ae4 100644 |
--- a/src/builtins/builtins-math.cc |
+++ b/src/builtins/builtins-math.cc |
@@ -341,7 +341,7 @@ BUILTIN(MathHypot) { |
} |
if (one_arg_is_nan) { |
- return *isolate->factory()->nan_value(); |
+ return isolate->heap()->nan_value(); |
} |
if (max == 0) { |