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

pkg/jerryscript: update to latest commit #9285

Merged
merged 1 commit into from
Jun 29, 2018
Merged

pkg/jerryscript: update to latest commit #9285

merged 1 commit into from
Jun 29, 2018

Conversation

anthonydurot
Copy link

@anthonydurot anthonydurot commented Jun 4, 2018

Contribution description

I updated the Makefile into pkg/javascript with the latest commit of JerryScript so that the API on JerryScript : http://jerryscript.net/api-reference/ is up to date with RIOT package version.

Issues/PRs references

The function used before are no longer supported by JerryScript, such as :

if (!jerry_value_has_error_flag(ret_value)) {

(See this PR on JerryScript :
jerryscript-project/jerryscript@ba2e49c )

Also, the jerry_parse function used here :

ret_value = jerry_parse(script, script_size, false);

Is no longer supported by JerryScript since this PR :

jerryscript-project/jerryscript@96b528a

@kYc0o kYc0o self-assigned this Jun 4, 2018
@kYc0o kYc0o added the Area: pkg Area: External package ports label Jun 4, 2018
@kYc0o kYc0o added this to the Release 2018.07 milestone Jun 4, 2018
@kYc0o
Copy link
Contributor

kYc0o commented Jun 4, 2018

Hi @Lydrin ! Welcome to RIOT and thanks for your contribution.

Just as a reminder (maybe you have already seen it in the contributions doc), we enforce the commit messages in the format of pkg/jerryscipt: update to latest commit or examples/jerryscript: adapt to updated pkg. Also, keep in mind that we also enforce working commits to ease bisect if needed, as well as a more explanatory description on the commit message if needed (though no more than 72 characters per line).

I'll take a look soon and give feedback. Thanks again!

@anthonydurot anthonydurot changed the title pkg/javascript Update JerryScript example pkg/javascript: update to latest commit Jun 4, 2018
Copy link
Contributor

@kYc0o kYc0o left a comment

Choose a reason for hiding this comment

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

+1 for the changes, they're legit and improve the example with few more checks. I have just a minor comment, with that addressed I'm ok to merge.

@kaspar030 would this break some of your applications?

@@ -29,32 +29,38 @@
/* include header generated from main.js */
#include "main.js.h"


Copy link
Contributor

Choose a reason for hiding this comment

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

This extra line is not needed.

@anthonydurot anthonydurot changed the title pkg/javascript: update to latest commit pkg/jerryscript: update to latest commit Jun 4, 2018
@kYc0o kYc0o added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 4, 2018
@kYc0o
Copy link
Contributor

kYc0o commented Jun 27, 2018

@kaspar030 ping!

@kaspar030
Copy link
Contributor

@kaspar030 would this break some of your applications?

Maybe, but I'll adapt acordingly. go ahead with this!

Copy link
Contributor

@kYc0o kYc0o left a comment

Choose a reason for hiding this comment

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

ACK.

@kYc0o kYc0o merged commit 4b7f85d into RIOT-OS:master Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants