-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
harden-exports error on 'function' keyword (#2387)
_fixup_ ## Description The new `harden-exports` rule should not allow a function defined by the `function` keyword to be exported, because it can't really be hardened. The hoisting allows the value to be mutated by an import before it can be hardened. ### Security Considerations improvement ### Scaling Considerations none ### Documentation Considerations none ### Testing Considerations new tests ### Compatibility Considerations bug fix ### Upgrade Considerations not released yet
- Loading branch information
Showing
2 changed files
with
15 additions
and
51 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