From d5f4a1f2acfa60ff1ab25e5bead47886113be402 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);