diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2021-01-28 18:22:18 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2021-02-08 09:00:31 +0300 |
commit | 1b7531cdeb46db2c315015f9138d95585b1064a9 (patch) | |
tree | da791b3e3cc0e514f9c84c06904031e231ec75a2 /src/node_file.h | |
parent | b346cd1760dfad560d89cb797be2cf6f9f77bb77 (diff) |
src: rename binding_data_name to type_name in BindingData
Previously, this was a per-class string constant for BindingData
which is used as keys for identifying these objects in the binding
data map. These are just type names of the BindingData.
This patch renames the variable to type_name so that
we can generalize this constant for other BaseObjects and use
it for debugging and logging the types of other BaseObjects.
PR-URL: https://github.com/nodejs/node/pull/37112
Refs: https://github.com/nodejs/node/pull/36943
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Diffstat (limited to 'src/node_file.h')
-rw-r--r-- | src/node_file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_file.h b/src/node_file.h index 95a68b5d89a..9e652dc7a4a 100644 --- a/src/node_file.h +++ b/src/node_file.h @@ -27,7 +27,7 @@ class BindingData : public BaseObject { std::vector<BaseObjectPtr<FileHandleReadWrap>> file_handle_read_wrap_freelist; - static constexpr FastStringKey binding_data_name { "fs" }; + static constexpr FastStringKey type_name { "fs" }; void MemoryInfo(MemoryTracker* tracker) const override; SET_SELF_SIZE(BindingData) |