Skip to content

Conversation

pleath
Copy link
Contributor

@pleath pleath commented Sep 10, 2016

We optimistically load a cached value into the result operand. But if the cached value is null, we'll have to call a helper to complete the operation, and if the result operand and string source have the same symbol, then we have overwritten the string we pass to the helper with null. Use a temp in such a case and copy it to the result operand only if it is non-null.

… load a cached value into the result operand. But if the cached value is null, we'll have to call a helper to complete the operation, and if the result operand and string source have the same symbol, then we have overwritten the string we pass to the helper with null. Use a temp in such a case and copy it to the result operand only if it is non-null.
@rajatd
Copy link
Contributor

rajatd commented Sep 12, 2016

:shipit:

@chakrabot chakrabot merged commit 77f531d into chakra-core:master Sep 12, 2016
chakrabot pushed a commit that referenced this pull request Sep 12, 2016
Merge pull request #1567 from pleath:8532848

We optimistically load a cached value into the result operand. But if the cached value is null, we'll have to call a helper to complete the operation, and if the result operand and string source have the same symbol, then we have overwritten the string we pass to the helper with null. Use a temp in such a case and copy it to the result operand only if it is non-null.
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.

4 participants