Skip to content

Conversation

tcare and others added 22 commits March 16, 2017 15:35
…en using a Symbol When setting a property trap with JavascriptProxy::SetPropertyTrap using a symbol as a property id, we incorrectly assume that JavascriptProxy::GetName returns a PropertyString. The case for a JavascriptSymbol is unhandled, and we do a static cast leading to type confusion. Fix is to handle any cases other than PropertyString by using nullptr, as is the convention elsewhere.
…array if the bailout kind tells us to bail out on helper calls.
This change promotes several asserts to failfasts, and adds two additional ones, in order to ensure that no post-lower opcodes are added earlier than the lowerer phase, either by being added to the incoming bytecode buffer, or by corrupting a part of the IR during the earlier phases of the JIT.
…ConcatSpreadable Signed-off-by: Michael Holman <Michael.Holman@microsoft.com>
The MissingItem check is happening on the array in a loop. It is possible that we get called into script and that mutates the array. So the Array's head is newly created with length. However the loop is still performing over the old length. Fixed this by checking the length In IsMissingItem function. Added a unittest.
…n param scope In a function expression with name, where the name is captured in one of the param scope functions, if there is a function or var declaration with the same name as the function expression name we were marking the function expression name as shadowed. In non-eval case this causes issue because the name symbol won't get added to the body. This change is to fix it in such a way if the name is captured in the param scope then we split the param and body scope such that the name symbol is added to the param scope not body scope.
@pleath
Copy link
Contributor

pleath commented Mar 16, 2017

My 2 commits look good.

@akroshg
Copy link
Contributor

akroshg commented Mar 16, 2017

LGTM.

@leirocks
Copy link
Contributor

LGTM

1 similar comment
@tcare
Copy link
Contributor

tcare commented Mar 16, 2017

LGTM

@suwc
Copy link

suwc commented Mar 16, 2017

LGTM

1 similar comment
@Cellule
Copy link
Contributor

Cellule commented Mar 16, 2017

LGTM

@chakrabot chakrabot merged commit cd6f65b into chakra-core:release/1.4 Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet