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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
joyeecheung committed Feb 12, 2019
1 parent 008074f commit fda80e3
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 fda80e3

Please sign in to comment.