Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Fixes for AbstractLevelDown 2 #41

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ var toBuffer = require('typedarray-to-buffer')

function Level(location) {
if (!(this instanceof Level)) return new Level(location)
if (!location) throw new Error("constructor requires at least a location argument")

AbstractLevelDOWN.call(this, location)

this.IDBOptions = {}
this.location = location
}
Expand Down