-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
.define method #2539
.define method #2539
Conversation
Otherwise a failed test may not restore it.
6352335
to
9e1e7a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a great start! I'll leave this for next week, as I am off to a train to the mountains. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty ready for inclusion. Just added some comments. You are free to object.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2539 +/- ##
==========================================
+ Coverage 95.73% 95.95% +0.21%
==========================================
Files 40 40
Lines 1901 1904 +3
==========================================
+ Hits 1820 1827 +7
+ Misses 81 77 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Could you just address this and I'll merge 😄 |
Purpose (TL;DR) - mandatory
Add the
.define(obj, property, value)
method to the sandbox to allow temporarily define properties on the objects (i.e. until the sandbox is restored).Fixes #2195
How to verify - mandatory
Run the tests
Checklist for author
npm run lint
passes