generated from ossf/project-template
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor format() so it's not a global String property
While JavaScript *allows* global properties on Strings to be added, it's not necessarily a good idea, as those are global (and could interfere with other things). To reduce the risk of future problems, use a created function instead, to avoid conflicts. This also adds a myAssert and improves internal comments about indexing as related changes. Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
- Loading branch information
1 parent
133f2b7
commit 63b0d95
Showing
1 changed file
with
35 additions
and
10 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