Skip to content

Commit

Permalink
feat: add number indexing too for enum GcType
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodisabatino committed Jan 9, 2022
1 parent 709ea3a commit ce9ab7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
## 1.2.1 (2022-01-02)


### Documentation

* update README ([2350ddf](https://github.com/matteodisabatino/gc_info/commit/2350ddfe37e5649761b0ff44eb1f04c951a3c817))

# 1.2.0 (2022-01-02)


Expand Down
5 changes: 5 additions & 0 deletions dist/index.js
Expand Up @@ -7,6 +7,11 @@ var gcInfo = bindings('gc_info.node')

module.exports = gcInfo
module.exports.GcType = {
1: 'Scavenge',
2: 'Mark/Sweep/Compact',
4: 'IncrementalMarking',
8: 'Weak/PhantomCallbackProcessing',
15: 'All',
Scavenge: 1,
'Mark/Sweep/Compact': 2,
IncrementalMarking: 4,
Expand Down

0 comments on commit ce9ab7b

Please sign in to comment.