We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a7646 commit b2c243fCopy full SHA for b2c243f
lib/internal/safe_globals.js
@@ -1,9 +1,7 @@
1
'use strict';
2
3
const copyProps = (unsafe, safe) => {
4
- for (const key of [...Object.getOwnPropertyNames(unsafe),
5
- ...Object.getOwnPropertySymbols(unsafe)
6
- ]) {
+ for (const key of Reflect.ownKeys(unsafe)) {
7
if (!Object.getOwnPropertyDescriptor(safe, key)) {
8
Object.defineProperty(
9
safe,
0 commit comments