Skip to content

Commit

Permalink
docs(oop/strict): fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Dec 25, 2024
1 parent 2500a08 commit e4622c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/oop/strict.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function notStrict() {
```javascript
// 对只读属性赋值会报错
'use strict';
Object.defineProperty({}, 'a', {
var obj = Object.defineProperty({}, 'a', {
value: 37,
writable: false
});
Expand Down

0 comments on commit e4622c2

Please sign in to comment.