Skip to content

Conversation

agarwal-sandeep
Copy link
Collaborator

Accessing arguments, caller and callee accessor returns different functions differing in error message. Spec says they should be treated as same for == and ===, so we had special handling in interpreter. Handling the same case in JIT is overkill. So I unified all the three functions into one and made the error message same.

@agarwal-sandeep
Copy link
Collaborator Author

@dotnet-bot test Windows x64_debug

@agarwal-sandeep
Copy link
Collaborator Author

@ianwjhalliday @bterlson please take a look

@@ -214,7 +214,7 @@ RT_ERROR_MSG(JSERR_InvalidPropertySignature, 5092, "The property '%s' has an inv
RT_ERROR_MSG(JSERR_InvalidRTCPropertyValueIn, 5093, "The runtimeclass %s that has Windows.Foundation.IPropertyValue as default interface is not supported as an input parameter type", "invalid input parameter type", kjstTypeError, 0)
RT_ERROR_MSG(JSERR_RTCInvalidRTCPropertyValueOut, 5094, "The object with interface Windows.Foundation.IPropertyValue that has runtimeclass name %s is not supported as an output parameter", "invalid output parameter", kjstTypeError, 0)

RT_ERROR_MSG(JSERR_AccessArgumentsRestricted, 5095, "", "Accessing the 'arguments' property is restricted in this context", kjstTypeError, 0)
//RT_ERROR_MSG(JSERR_AccessArgumentsRestricted, 5095, "", "Accessing the 'arguments' property is restricted in this context", kjstTypeError, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

removed the commented code (by saying 5095 removed), rest looks good to me.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for above


In reply to: 75522095 [](ancestors = 75522095)

@ianwjhalliday
Copy link
Collaborator

This is an awesome simplification of the code. Kudos!

:shipit:

@agarwal-sandeep
Copy link
Collaborator Author

@dotnet-bot test Windows arm_release Windows x64_debug Windows x86_release

@agarwal-sandeep
Copy link
Collaborator Author

@dotnet-bot test Windows x64_debug @dotnet-bot test Windows x86_release

@chakrabot chakrabot merged commit b04e071 into chakra-core:master Aug 19, 2016
chakrabot pushed a commit that referenced this pull request Aug 19, 2016
…ller and callee accessor functions

Merge pull request #1464 from agarwal-sandeep:accessorfunction

Accessing arguments, caller and callee accessor returns different functions differing in error message. Spec says they should be treated as same for == and ===, so we had special handling in interpreter. Handling the same case in JIT is overkill. So I unified all the three functions into one and made the error message same.
@agarwal-sandeep agarwal-sandeep deleted the accessorfunction branch August 25, 2016 19:33
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.

5 participants