mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
3d09e579d3
This commit introduces an experimental implementation of the Web Storage API using SQLite as the backing data store. PR-URL: https://github.com/nodejs/node/pull/52435 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
'use strict';
|
|
const tmpdir = require('../common/tmpdir');
|
|
const { WPTRunner } = require('../common/wpt');
|
|
const { join } = require('node:path');
|
|
const runner = new WPTRunner('webstorage', { concurrency: 1 });
|
|
|
|
tmpdir.refresh();
|
|
|
|
runner.setFlags([
|
|
'--experimental-webstorage',
|
|
'--localstorage-file', join(tmpdir.path, 'wpt-tests.localstorage'),
|
|
]);
|
|
runner.setInitScript(`
|
|
globalThis.window = globalThis;
|
|
`);
|
|
runner.runJsTests();
|