Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Nov 9, 2023
1 parent 487e48c commit e6b6b0c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions define-nonenumerable-read-only-accessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ var setNonEnumerableReadOnlyAccessor = require( '@stdlib/utils/define-nonenumera

<!-- eslint-disable id-length -->

<!-- run throws: true -->

```javascript
function getter() {
return 'bar';
Expand All @@ -49,8 +47,12 @@ var obj = {};

setNonEnumerableReadOnlyAccessor( obj, 'foo', getter );

obj.foo = 'boop';
// throws <Error>
try {
obj.foo = 'boop';
// throws <Error>
} catch ( error ) {
console.error( error.message );
}
```

</section>
Expand Down

0 comments on commit e6b6b0c

Please sign in to comment.