forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify handling of internal values a bit
The weak map that I previously talked about [1] wasn't as I intended it to be, in this case the map only ever contain a single item. My intention was to keep a map outside of the "test's runtime", as I am doing with this change, but I now realize that strings aren't legal WeakMap keys. Furthremore, I like that the reference contained in the Cypress environment is a primitive value. Less surprises this way. Lastly, because the value known to Cypress is a primitive value and not something where we're messing with method overloading, I am more comfortable with reomving the opt-out feature of this. [1] #908 (comment)
- Loading branch information
Showing
4 changed files
with
51 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters