File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ const {
44} = primordials ;
55const { ERR_INVALID_ARG_VALUE } = require ( 'internal/errors' ) . codes ;
66const { getOptionValue } = require ( 'internal/options' ) ;
7- const { emitExperimentalWarning } = require ( 'internal/util' ) ;
87const { kConstructorKey, Storage } = internalBinding ( 'webstorage' ) ;
98const { getValidatedPath } = require ( 'internal/fs/utils' ) ;
9+ const { emitWarning } = require ( 'process' ) ;
1010const kInMemoryPath = ':memory:' ;
1111
12- emitExperimentalWarning ( 'Web Storage' ) ;
13-
1412module . exports = { Storage } ;
1513
1614let lazyLocalStorage ;
@@ -27,9 +25,9 @@ ObjectDefineProperties(module.exports, {
2725 const location = getOptionValue ( '--localstorage-file' ) ;
2826
2927 if ( location === '' ) {
30- throw new ERR_INVALID_ARG_VALUE ( '--localstorage-file' ,
31- location ,
32- 'is an invalid localStorage location' ) ;
28+ emitWarning ( ` ${ location } is an invalid localStorage location` ) ;
29+
30+ return undefined ;
3331 }
3432
3533 lazyLocalStorage = new Storage ( kConstructorKey , getValidatedPath ( location ) ) ;
You can’t perform that action at this time.
0 commit comments