Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/util.js')
-rw-r--r--lib/internal/util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/internal/util.js b/lib/internal/util.js
index 61e58a5d69d..030af62be87 100644
--- a/lib/internal/util.js
+++ b/lib/internal/util.js
@@ -13,6 +13,7 @@ const {
ObjectGetOwnPropertyDescriptor,
ObjectGetOwnPropertyDescriptors,
ObjectGetPrototypeOf,
+ ObjectFreeze,
ObjectSetPrototypeOf,
Promise,
ReflectApply,
@@ -504,6 +505,8 @@ const lazyDOMException = hideStackFrames((message, name) => {
const kEnumerableProperty = ObjectCreate(null);
kEnumerableProperty.enumerable = true;
+const kEmptyObject = ObjectFreeze(ObjectCreate(null));
+
module.exports = {
assertCrypto,
cachedResult,
@@ -544,5 +547,6 @@ module.exports = {
kIsEncodingSymbol: Symbol('kIsEncodingSymbol'),
kVmBreakFirstLineSymbol: Symbol('kVmBreakFirstLineSymbol'),
+ kEmptyObject,
kEnumerableProperty,
};