Skip to content

Conversation

@janjongboom
Copy link
Contributor

@janjongboom janjongboom commented Jan 10, 2017

Magic strings are expected to be sorted by length, then alphabetically after #1506 landed. This breaks the mbedos5 target against JerryScript master as it emits the pins in the order that it finds the pins. This patch sorts the pin names.

JerryScript-DCO-1.0-Signed-off-by: Jan Jongboom janjongboom@gmail.com

/cc @thegecko

Magic strings are expected to be sorted by length, then alphabetically after jerryscript-project#1506 landed. This breaks the mbedos5 target against JerryScript master as it emits the pins in the order that it finds the pins. This patch sorts the pin names.

JerryScript-DCO-1.0-Signed-off-by: Jan Jongboom janjongboom@gmail.com
@janjongboom
Copy link
Contributor Author

janjongboom commented Jan 10, 2017

To verify:

  • Build mbed-js-example against JerryScript master. Fails with: Assertion 'prev_string_size <= string_size' failed at ../../jerry-core/lit/ lit-magic-strings.c(lit_magic_strings_ex_set):169. during runtime.
  • Build with this patch enabled, program runs as expected.

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

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

LGTM

@zherczeg
Copy link
Member

LGTM. Thank you for the update.

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