This is discarded anyway, so let's not confuse ourselves by returning a NaN number value that's not going to be used.
@@ -229,7 +229,7 @@ JS_DEFINE_NATIVE_FUNCTION(DateConstructor::parse)
auto iso_8601 = vm.argument(0).to_string(global_object);
if (vm.exception())
- return js_nan();
+ return {};
return parse_simplified_iso8601(iso_8601);
}