Skip to content
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 Object.prototype.toLocaleString #40

Merged

Conversation

galpeter
Copy link
Contributor

JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]

ecma_free_completion_value (obj_this);

ecma_string_t *to_string_magic_string_p = ecma_get_magic_string (ECMA_MAGIC_STRING_TO_STRING_UL);
ecma_completion_value_t to_string_prop_ret = ecma_op_object_get (obj_p, to_string_magic_string_p);
Copy link
Contributor

Choose a reason for hiding this comment

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

The obj_p reference cannot be used here, because it was released on line 163.

@galpeter galpeter force-pushed the object_prototype_tolocalestring branch 2 times, most recently from b8d1d1d to f9109ba Compare May 13, 2015 09:10
@galpeter
Copy link
Contributor Author

I've updated the pull request.

@galpeter galpeter force-pushed the object_prototype_tolocalestring branch from f9109ba to 996bb5a Compare May 13, 2015 12:31
ecma_object_t *to_string_func_obj_p = ecma_get_object_from_value (to_string_val);
return_value = ecma_op_function_call (to_string_func_obj_p, this_arg, NULL, 0);
}
ECMA_FINALIZE (to_string_val)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, add semicolon here and below.

@egavrin
Copy link
Contributor

egavrin commented May 14, 2015

Fix semicolons and make push.

@galpeter galpeter force-pushed the object_prototype_tolocalestring branch from 996bb5a to 5cce2a0 Compare May 15, 2015 09:04
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants