Skip to content

Commit

Permalink
lib: save a copy of Symbol in primordials
Browse files Browse the repository at this point in the history
PR-URL: #26033
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
joyeecheung authored and addaleax committed Feb 13, 2019
1 parent 85bc64a commit d5f4a1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/bootstrap/primordials.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d5f4a1f

Please sign in to comment.