Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 692eb71

Browse files
wangdoc#212 FIX 9.3 Object.defineProperty,对象名o应该是obj
1 parent a9c543b commit 692eb71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/stdlib/attributes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ Object.getOwnPropertyDescriptor(obj, 'p')
635635
// configurable: false
636636
// }
637637

638-
Object.defineProperty(o, 'p', {
638+
Object.defineProperty(obj, 'p', {
639639
enumerable: false
640640
})
641641
// TypeError: Cannot redefine property: p

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /