Skip to content

Commit e4622c2

Browse files
committed
docs(oop/strict): fixed typo
1 parent 2500a08 commit e4622c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/oop/strict.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function notStrict() {
108108
```javascript
109109
// 对只读属性赋值会报错
110110
'use strict';
111-
Object.defineProperty({}, 'a', {
111+
var obj = Object.defineProperty({}, 'a', {
112112
value: 37,
113113
writable: false
114114
});

0 commit comments

Comments
 (0)