mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
This adds a new API to allow the bundled script in SEA to query the list of assets. PR-URL: https://github.com/nodejs/node/pull/59661 Refs: https://github.com/nodejs/single-executable/discussions/112 Reviewed-By: Darshan Sen <raisinten@gmail.com>
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const { getAssetKeys } = require('node:sea');
|
|
const assert = require('node:assert');
|
|
|
|
// Test that getAssetKeys throws when not in SEA
|
|
assert.throws(() => getAssetKeys(), {
|
|
code: 'ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION'
|
|
});
|