Skip to content

Conversation

@MarkoMlakar
Copy link

This PR

  • Remove redundant loop for updating the before hook contexts
  • Add simple test case to make sure the same object reference is being updated

Related Issues

#1236

Notes

The accumulated evaluation context object is shared with all the hooks (same object reference). This makes the inner for loop for updating the contexts redundant

How to test

npm run test

- Remove redundant loop for updating the hook contexts
- Add simple test case to make sure the same object reference is being updated

Signed-off-by: Marko Mlakar <[email protected]>
Copy link
Member

@aepfli aepfli left a comment

Choose a reason for hiding this comment

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

thank you this looks good to me - but i am by far not a js expert, maybe somebody else can have a look at this

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.

2 participants