[INTL] Implement Date.prototype.toLocaleDateString in ECMA-402
[WebKit-https.git] / Source / JavaScriptCore / runtime / DatePrototype.cpp
index f5e8684..45af7e0 100644 (file)
@@ -493,6 +493,7 @@ void DatePrototype::finishCreation(VM& vm, JSGlobalObject* globalObject)
 
 #if ENABLE(INTL)
     JSC_BUILTIN_FUNCTION("toLocaleString", datePrototypeToLocaleStringCodeGenerator, DontEnum);
+    JSC_BUILTIN_FUNCTION("toLocaleDateString", datePrototypeToLocaleDateStringCodeGenerator, DontEnum);
 #else
     UNUSED_PARAM(globalObject);
 #endif // ENABLE(INTL)