Skip to content

Commit

Permalink
Merge pull request #14 from ottomated/patch-1
Browse files Browse the repository at this point in the history
Make row properties writable to match the behavior of the sqlite client
  • Loading branch information
penberg authored Jun 3, 2024
2 parents 88068ef + e2fb4a8 commit 7897274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function rowFromProto(

const colName = colNames[i];
if (colName !== undefined && !Object.hasOwn(row, colName)) {
Object.defineProperty(row, colName, { value, enumerable: true });
Object.defineProperty(row, colName, { value, enumerable: true, configurable: true, writable: true });
}
}
return row as Row;
Expand Down

0 comments on commit 7897274

Please sign in to comment.