Skip to content

Commit 87c6b42

Browse files
committed
Fix mistake in the ownKeys trap example
1 parent c27b2c3 commit 87c6b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manuscript/12-Proxies-and-Reflection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,10 @@ let names = Object.getOwnPropertyNames(proxy),
674674
symbols = Object.getOwnPropertySymbols(proxy);
675675

676676
console.log(names.length); // 1
677-
console.log(names[0]); // "proxy"
677+
console.log(names[0]); // "name"
678678

679679
console.log(keys.length); // 1
680-
console.log(keys[0]); // "proxy"
680+
console.log(keys[0]); // "name"
681681

682682
console.log(symbols.length); // 1
683683
console.log(symbols[0]); // "Symbol(name)"

0 commit comments

Comments
 (0)