Skip to content

Commit

Permalink
Merge pull request #166 from netroy/make-rows-writable
Browse files Browse the repository at this point in the history
fix: Do not make rows read-only
  • Loading branch information
penberg authored Jan 29, 2024
2 parents 8108079 + 718a3b9 commit b7a5358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/libsql-client-wasm/src/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function rowFromSql(sqlRow: Array<unknown>, columns: Array<string>, intMode: Int

const column = columns[i];
if (!Object.hasOwn(row, column)) {
Object.defineProperty(row, column, { value, enumerable: true });
Object.defineProperty(row, column, { value, enumerable: true, configurable: true, writable: true });
}
}
return row as Row;
Expand Down
2 changes: 1 addition & 1 deletion packages/libsql-client/src/sqlite3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function rowFromSql(sqlRow: Array<unknown>, columns: Array<string>, intMode: Int

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

0 comments on commit b7a5358

Please sign in to comment.