Skip to content

Init commit for Date object #184

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

Closed
wants to merge 1 commit into from
Closed

Init commit for Date object #184

wants to merge 1 commit into from

Conversation

LaszloLango
Copy link
Contributor

JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com

@LaszloLango
Copy link
Contributor Author

@zherczeg, @egavrin please review

@LaszloLango LaszloLango added the ecma builtins Related to ECMA built-in routines label Jun 15, 2015
@LaszloLango LaszloLango added this to the ECMA builtins milestone Jun 15, 2015
@LaszloLango LaszloLango added the development Feature implementation label Jun 15, 2015
@zherczeg
Copy link
Member

I think this patch is nice, and much needed. lgtm.

@@ -319,6 +319,7 @@ ecma_gc_mark (ecma_object_t *object_p) /**< object to mark from */
case ECMA_INTERNAL_PROPERTY_PRIMITIVE_STRING_VALUE: /* compressed pointer to a ecma_string_t */
case ECMA_INTERNAL_PROPERTY_PRIMITIVE_NUMBER_VALUE: /* compressed pointer to a ecma_number_t */
case ECMA_INTERNAL_PROPERTY_PRIMITIVE_BOOLEAN_VALUE: /* a simple boolean value */
case ECMA_INTERNAL_PROPERTY_PRIMITIVE_DATE_VALUE: /* compressed pointer to a ecma_date_t */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the ecma_date_t defined anywhere?

@egavrin
Copy link
Contributor

egavrin commented Jun 15, 2015

This PR is OK for me.

@ruben-ayrapetyan do you have any comments?

P.S. I like the idea of push skeleton of Date builtin, first - this should should simplify further development and merging.

@egavrin egavrin assigned ruben-ayrapetyan and unassigned egavrin Jun 15, 2015
*/
static ecma_completion_value_t
ecma_builtin_date_prototype_set_time (ecma_value_t this_arg, /**< this argument */
ecma_value_t arg) /**< routine's argument */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, it is better to replace routine's argument with name of argument, used in specification - for the case it would be time.

@LaszloLango
Copy link
Contributor Author

@ruben-ayrapetyan, I've updated the PR. Please check.

@@ -0,0 +1,718 @@
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that there should be Copyright 2015, as the file is created in 2015 year.

@ruben-ayrapetyan
Copy link
Contributor

After fixing copyright dates, the changes would be ok for me.

@LaszloLango
Copy link
Contributor Author

@ruben-ayrapetyan, ok. I'll do it before merge.

JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Feature implementation ecma builtins Related to ECMA built-in routines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants