Ran
|
Files
69
|
Run time
5s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Ensure that embedded Maps and Sets are properly deep-frozen. Object.freeze() doesn't actually have any effect on Map and Set, since their mutable data is held in a hidden internal field. Stomp on the mutator methods to ensure that any attempt to alter the map is rejected. (You could still mutate the collection if you try really hard, for example `Map.prototype.set.call(m, ...)`, but we're just trying to avoid foot-guns here.) Tweak deepFreeze to recurse correctly through included maps and sets, freezing the keys/values as appropriate. Change-Id: Ia16738e88
10968 of 12787 relevant lines covered (85.77%)
22464.12 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|