Skip to content

Conversation

@zherczeg
Copy link
Member

A literal might be not freed if it is stored in a register, and PARSER_DUMP_BYTE_CODE is enabled, but opcodes are not shown.

It is easy to trigger, but there is no test for this:
function f(){var \u0042 = true;};

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

@akosthekiss
Copy link
Member

@zherczeg If there is a known problematic test case why not add it to the test suite? (Even if it hardly triggers an issue with the current test execution settings, it may be valuable to save it with a comment attached about the details.)

A literal might be not freed if it is stored in a register,
and PARSER_DUMP_BYTE_CODE is enabled, but opcodes are not shown.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
@zherczeg
Copy link
Member Author

Thank you for the review. A test case is added.

Copy link
Member

@akosthekiss akosthekiss 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 zherczeg merged commit 86ecc81 into jerryscript-project:master Jun 18, 2018
@zherczeg zherczeg deleted the show_opcodes_fix branch June 18, 2018 07:31
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