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>
18 lines
634 B
JavaScript
18 lines
634 B
JavaScript
var tests = [
|
|
function() { localStorage.key(); },
|
|
function() { localStorage.getItem(); },
|
|
function() { localStorage.setItem(); },
|
|
function() { localStorage.setItem("a"); },
|
|
function() { localStorage.removeItem(); },
|
|
function() { sessionStorage.key(); },
|
|
function() { sessionStorage.getItem(); },
|
|
function() { sessionStorage.setItem(); },
|
|
function() { sessionStorage.setItem("a"); },
|
|
function() { sessionStorage.removeItem(); },
|
|
];
|
|
tests.forEach(function(fun) {
|
|
test(function() {
|
|
assert_throws_js(TypeError, fun);
|
|
}, "Should throw TypeError for " + format_value(fun) + ".");
|
|
});
|