Skip to content

Conversation

@zherczeg
Copy link
Member

When the same value is assigned to a property, and its reference
counter is one, dereferencing the value frees its allocated memory.
In this case we return early.

Fixes #1072 and several others.

@@ -0,0 +1,19 @@
// Copyright 2015 Samsung Electronics Co., Ltd.
// Copyright 2015 University of Szeged.
Copy link
Member

Choose a reason for hiding this comment

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

Incorrect year

@akosthekiss
Copy link
Member

Once the copyright year is fixed, LGTM

@dbatyai dbatyai added the bug Undesired behaviour label May 24, 2016
@dbatyai
Copy link
Member

dbatyai commented May 24, 2016

LGTM

@zherczeg zherczeg changed the title Fix value assing in JerryScript Fix value passing in JerryScript May 24, 2016
counter is one, dereferencing the value frees its allocated memory.
In this case we return early.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
@zherczeg zherczeg force-pushed the ecma_value_assign_value_fix branch from 1515a01 to be273d8 Compare May 24, 2016 09:27
@zherczeg zherczeg merged commit be273d8 into jerryscript-project:master May 24, 2016
@zherczeg zherczeg deleted the ecma_value_assign_value_fix branch May 24, 2016 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Undesired behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants