Skip to content

Commit f07768d

Browse files
author
Joshua Wise
committed
minor tweaks
1 parent 4a9846d commit f07768d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/binder/bind-object.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
int Binder::BindObject(v8::Local<v8::Object> obj, v8::Local<v8::Object> bindMap) {
88
// Get array of properties.
9-
Nan::MaybeLocal<v8::Array> maybeKeys = Nan::GetPropertyNames(obj);
9+
Nan::MaybeLocal<v8::Array> maybeKeys = Nan::GetOwnPropertyNames(obj);
1010
if (maybeKeys.IsEmpty()) {
1111
error = "An error was thrown while trying to get the property names of the given object.";
1212
return 0;

src/multi-binder/bind-object.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
int MultiBinder::BindObject(v8::Local<v8::Object> obj, v8::Local<v8::Object> bindMap) {
99
// Get array of properties.
10-
Nan::MaybeLocal<v8::Array> maybeKeys = Nan::GetPropertyNames(obj);
10+
Nan::MaybeLocal<v8::Array> maybeKeys = Nan::GetOwnPropertyNames(obj);
1111
if (maybeKeys.IsEmpty()) {
1212
error = "An error was thrown while trying to get the property names of the given object.";
1313
return 0;

test/20.statement.run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('Statement#run()', function () {
129129
var i = 0;
130130
var row;
131131
while (row = db.prepare('SELECT * FROM entries WHERE rowid=' + ++i).get()) {
132-
expect(row).to.deep.equal({a: 'foo', b: 25, c: 25, d: Buffer.alloc(8).fill(0xdd)})
132+
expect(row).to.deep.equal({a: 'foo', b: 25, c: 25, d: Buffer.alloc(8).fill(0xdd)});
133133
}
134134
expect(i).to.equal(9);
135135
});

test/30.transaction.run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ describe('Transaction#run()', function () {
185185
var i = 0;
186186
var row;
187187
while (row = db.prepare('SELECT * FROM entries WHERE rowid=' + ++i).get()) {
188-
expect(row).to.deep.equal({a: 'foo', b: 25, c: 25, d: Buffer.alloc(8).fill(0xdd)})
188+
expect(row).to.deep.equal({a: 'foo', b: 25, c: 25, d: Buffer.alloc(8).fill(0xdd)});
189189
}
190190
expect(i).to.equal(17);
191191
});

0 commit comments

Comments
 (0)