From fda80e3c99855083882a01d0d2b28b7543777b32 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sun, 10 Feb 2019 17:40:43 +0800 Subject: [PATCH] lib: save a copy of Symbol in primordials PR-URL: https://github.com/nodejs/node/pull/26033 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- lib/internal/bootstrap/primordials.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/bootstrap/primordials.js b/lib/internal/bootstrap/primordials.js index 2a97e74542a964..85f1f54c1ccf7e 100644 --- a/lib/internal/bootstrap/primordials.js +++ b/lib/internal/bootstrap/primordials.js @@ -72,7 +72,8 @@ primordials.SafePromise = makeSafe( 'Function', 'Object', 'RegExp', - 'String' + 'String', + 'Symbol', ].forEach((name) => { const target = primordials[name] = Object.create(null); copyProps(global[name], target);