Skip to content

Commit 1dc7d76

Browse files
committed
fixes
1 parent cf7ec02 commit 1dc7d76

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

promise.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,19 @@ class Database {
152152
}
153153

154154
loadExtension(...args) {
155-
throw new Error("not implemented");
155+
try {
156+
this.db.loadExtension(...args);
157+
} catch (err) {
158+
throw convertError(err);
159+
}
156160
}
157161

158162
maxWriteReplicationIndex() {
159-
throw new Error("not implemented");
163+
try {
164+
return this.db.maxWriteReplicationIndex();
165+
} catch (err) {
166+
throw convertError(err);
167+
}
160168
}
161169

162170
/**

wrapper.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ class Database {
156156
}
157157

158158
loadExtension(...args) {
159-
throw new Error("not implemented");
159+
try {
160+
this.db.loadExtension(...args);
161+
} catch (err) {
162+
throw convertError(err);
163+
}
160164
}
161165

162166
maxWriteReplicationIndex() {

0 commit comments

Comments
 (0)