mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
PR-URL: https://github.com/nodejs/node/pull/60906 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
9 lines
343 B
JavaScript
9 lines
343 B
JavaScript
'use strict';
|
|
|
|
const { hasSQLite } = require('../common');
|
|
const assert = require('node:assert');
|
|
|
|
// Ensuring that `sessionStorage` is not a getter that throws when built without SQLite.
|
|
assert.strictEqual(typeof sessionStorage, hasSQLite ? 'object' : 'undefined');
|
|
assert.strictEqual(Object.hasOwn(globalThis, 'sessionStorage'), hasSQLite);
|