Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Apr 1, 2021

Discovered by failing tests in NativeAOT FI (dotnet/runtimelab#898)

public void Throw()
{
switch(_failureType)
switch (_failureType)
Copy link
Member Author

Choose a reason for hiding this comment

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

This file gets compiled in NativeAOT branch with some more stylecop rules.

/// or <see cref="MethodSignature"/>).
/// </summary>
public abstract Object GetObject(int token, NotFoundBehavior notFoundBehavior = NotFoundBehavior.ReturnNull);
public abstract Object GetObject(int token, NotFoundBehavior notFoundBehavior = NotFoundBehavior.Throw);
Copy link
Member Author

Choose a reason for hiding this comment

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

This is inconsistent with the default for EcmaMethodIL.GetObject and with the original behavior.

@jkotas jkotas requested a review from davidwrighton April 1, 2021 04:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants