LibJS: Implement Date.parse()

The spec says Date.parse() should accept at least a simplified form
of ISO 8601, so that's all this implements.
This commit is contained in:
Nico Weber 2020-08-21 12:51:00 -04:00 committed by Andreas Kling
commit 6e5aa5d5df
Notes: sideshowbarker 2024-07-19 03:20:50 +09:00
3 changed files with 151 additions and 2 deletions

View file

@ -45,6 +45,7 @@ private:
virtual bool has_constructor() const override { return true; }
JS_DECLARE_NATIVE_FUNCTION(now);
JS_DECLARE_NATIVE_FUNCTION(parse);
JS_DECLARE_NATIVE_FUNCTION(utc);
};