mirror of
https://github.com/wangdoc/javascript-tutorial.git
synced 2025-12-30 01:42:34 +08:00
#212 FIX 9.3 Object.defineProperty,对象名o应该是obj
This commit is contained in:
@@ -635,7 +635,7 @@ Object.getOwnPropertyDescriptor(obj, 'p')
|
||||
// configurable: false
|
||||
// }
|
||||
|
||||
Object.defineProperty(o, 'p', {
|
||||
Object.defineProperty(obj, 'p', {
|
||||
enumerable: false
|
||||
})
|
||||
// TypeError: Cannot redefine property: p
|
||||
|
||||
Reference in New Issue
Block a user