-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Date object helper functions #199
Conversation
@@ -0,0 +1,501 @@ | |||
/* Copyright 2014-2015 Samsung Electronics Co., Ltd. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 2015 only.
Otherwise lgtm. |
@@ -0,0 +1,140 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you, please, commit addition of ./third-party/fdlibm/*
separately.
#include "ecma-helpers.h" | ||
#include "fdlibm-math.h" | ||
|
||
#ifndef CONFIG_ECMA_COMPACT_PROFILE_DISABLE_DATE_BUILTIN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are helpers from the module supposed to be used somewhere outside of jerry-core/ecma/builtin-objects/
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, maybe we wouldn't use them anywhere outside of builtins. So should I remove this guard?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, move them to jerry-core/ecma/builtin-objects (maybe to ecma-builtin-helpers.cpp, as the helpers would be used for implementation of both Date
and Date.prototype
built-ins).
Please, split PR on two commits: Add fdlib and Date logic. |
d8fcbbb
to
3e960da
Compare
This PR depends on #223. |
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
ecma_date_daylight_saving_ta (ecma_number_t __attr_unused___ time) /**< time value */ | ||
{ | ||
JERRY_ASSERT (!ecma_number_is_nan (time)); | ||
JERRY_UNIMPLEMENTED ("The ecma_date_daylight_saving_ta is not implemented yet."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor note: there is no need to the function name to the unimplemented comment as the macro will print out the file name, function name and line number.
Add comments to the time range defines JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
Hi, I have updated the patch. Could you take a look? ( @kkristof ) |
lgtm |
Looks good to me |
Rebased & merged: 07148d3 |
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]