Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: field pointers in fieldIndexByName #452

Merged
merged 2 commits into from
Nov 25, 2022
Merged

fix: field pointers in fieldIndexByName #452

merged 2 commits into from
Nov 25, 2022

Conversation

stevenh
Copy link
Collaborator

@stevenh stevenh commented Nov 25, 2022

Allow pointers to structs in fieldIndexByName.

Also:

  • Use reflect.Type.Elem() vs reflect.ValueOf(t).Elem().Type().

Allow pointers to structs in fieldIndexByName.

Also:
* Use reflect.Type.Elem() vs reflect.ValueOf(t).Elem().Type().
Format bug_test.go to fix lint failure.
@stevenh stevenh merged commit 041379f into master Nov 25, 2022
@stevenh stevenh deleted the fix/field-ptr branch November 25, 2022 22:13
sg3des pushed a commit to sg3des/otto that referenced this pull request Jul 17, 2023
Allow pointers to structs in fieldIndexByName.

Also:
* Use reflect.Type.Elem() vs reflect.ValueOf(t).Elem().Type().
* Format bug_test.go to fix lint failure.
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.

1 participant