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 Number.prototype.toExponential() #224

Closed
wants to merge 1 commit into from
Closed

Implement Number.prototype.toExponential() #224

wants to merge 1 commit into from

Conversation

dbatyai
Copy link
Member

@dbatyai dbatyai commented Jun 22, 2015

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com

@dbatyai dbatyai added ecma builtins Related to ECMA built-in routines development Feature implementation labels Jun 22, 2015
@dbatyai dbatyai added this to the ECMA builtins milestone Jun 22, 2015

if (!ecma_is_value_undefined (arg))
{
frac_digits = ecma_number_to_int32 (arg_num);
Copy link
Contributor

Choose a reason for hiding this comment

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

ToNumber returns NaN for undefined, and ToInt32 returns zero for NaN.

s *= 10;
}

ecma_char_t* p = buff;
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong placed *

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
@dbatyai
Copy link
Member Author

dbatyai commented Jun 26, 2015

I've updated the PR, please take a look.

@kkristof
Copy link
Contributor

lgtm

@dbatyai
Copy link
Member Author

dbatyai commented Jun 29, 2015

@egavrin, @ruben-ayrapetyan , any other comments?

@ruben-ayrapetyan
Copy link
Contributor

@dbatyai, I've got no other comments.

@egavrin
Copy link
Contributor

egavrin commented Jun 30, 2015

Good to me

@egavrin egavrin assigned dbatyai and unassigned egavrin Jun 30, 2015
@dbatyai
Copy link
Member Author

dbatyai commented Jul 1, 2015

merged: 53cbb55

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.

None yet

5 participants