Skip to content

Use ecma-collection in JSON. #543

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

Merged
merged 1 commit into from
Aug 7, 2015

Conversation

rtakacs
Copy link
Contributor

@rtakacs rtakacs commented Aug 6, 2015

The simple list data structure has replaced with ecma-collection in the JSON object.

@kkristof kkristof added enhancement An improvement ecma builtins Related to ECMA built-in routines labels Aug 6, 2015
@kkristof kkristof added this to the ECMA builtins milestone Aug 6, 2015
@kkristof kkristof assigned kkristof and ruben-ayrapetyan and unassigned kkristof Aug 6, 2015

return false;
} /* list_has_element */
ecma_collection_iterator_t iterator;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe, the function should be named ecma_has_object_value_in_collection.

@rtakacs
Copy link
Contributor Author

rtakacs commented Aug 7, 2015

I've updated the pull request.

ecma_string_t *gap_str_p;

/** The replacer function. */
ecma_object_t *replacer_function_p;
} stringify_context_t;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you, please, also add ecma_json_ or ecma_ prefix to the structure name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course. Done.

@ruben-ayrapetyan
Copy link
Contributor

Looks good to me

The simple list data structure has been replaced with ecma-collection in the JSON object.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
@dbatyai
Copy link
Member

dbatyai commented Aug 7, 2015

lgtm

@dbatyai dbatyai merged commit ff580ca into jerryscript-project:master Aug 7, 2015
@zherczeg
Copy link
Member

zherczeg commented Aug 7, 2015

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecma builtins Related to ECMA built-in routines enhancement An improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants