We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
classic-level
1 parent 0b98710 commit 9304795Copy full SHA for 9304795
index.js
@@ -30,8 +30,8 @@ class BrowserLevel extends AbstractLevel {
30
seek: true
31
}, forward)
32
33
- if (typeof location !== 'string') {
34
- throw new Error('constructor requires a location string argument')
+ if (typeof location !== 'string' || location === '') {
+ throw new TypeError("The first argument 'location' must be a non-empty string")
35
}
36
37
// TODO (next major): remove default prefix
0 commit comments