-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
thoughts #1
Comments
So... I think I ended up inadvertently solving istanbuljs/nyc#70 Initially, this was going to be a listener that AVA used to watch how extensions installed behaved and decide whether or not to disable our test transforms (it still could be used for that). Check out the test suite, specifically the last 4 tests. |
// @bcoe |
So, I am not sure what the heck to call this thing, or what it does. Check out: this test. It now realize what @novemberborn's clever hook really does, is ensure that |
(note that in the test "wrapped" transforms are installed with this library, "conventional" would be one installed via something like |
@jamestalmage this is nice! I like how it retains How does it deal with a new hook calling a previously stored reference to |
After installation, any reference to I'm like 60% sure of this 😄 |
@novemberborn Do you think that covers all the scenarios you were thinking of? |
@jamestalmage yea, quite extensively I must say. I wonder if this should have a "revert" API like |
Maybe. Created #2 |
Just published |
@novemberborn
Take a look at this.
It's basically your
nyc
implementation with a few changes.Never uses
Module.prototype
,instead it does:// redacted - no longer true
Uses
Object.getPropertyDescriptor
, and if it sees registeredgetter
/setter
, will forward updates to them.The text was updated successfully, but these errors were encountered: