Skip to content

Commit

Permalink
Fix read-only constraint via mistyped key name
Browse files Browse the repository at this point in the history
Closes #689
  • Loading branch information
Leonidas-from-XIV committed Jul 26, 2023
1 parent 8e9a120 commit cb2f77e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defineProperty = (obj, key, value) ->
# make sure the descriptor hasn't been prototype polluted
descriptor = Object.create null
descriptor.value = value
descriptor.writeable = true
descriptor.writable = true
descriptor.enumerable = true
descriptor.configurable = true
Object.defineProperty obj, key, descriptor
Expand Down

0 comments on commit cb2f77e

Please sign in to comment.