Skip to content

Conversation

@ruben-ayrapetyan
Copy link
Contributor

The removed assertion checked that this argument can't be equal to undefined in direct call to eval.
Actually, this can be not equal to undefined in case direct call to eval is performed from with block.

Related issue: #212

Copy link
Contributor

Choose a reason for hiding this comment

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

ecma_value_t this_arg should be marked as unused.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@egavrin, thanks.

I've updated pull request.

@egavrin
Copy link
Contributor

egavrin commented Jun 20, 2015

Good to me

@ruben-ayrapetyan ruben-ayrapetyan assigned galpeter and unassigned egavrin Jun 21, 2015
@galpeter
Copy link
Contributor

lgtm

@galpeter galpeter removed their assignment Jun 23, 2015
@egavrin
Copy link
Contributor

egavrin commented Jun 23, 2015

make push

The removed assertion checked that `this` argument can't be equal to `undefined` in direct call to eval.
Actually, `this` can be not equal to `undefined` in case direct call to eval is performed from `with` block.

Related issue: #212

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Undesired behaviour ecma builtins Related to ECMA built-in routines normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants