MCPcopy Index your code
hub / github.com/nodejs/node / setupNavigator

Function setupNavigator

lib/internal/process/pre_execution.js:371–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369// TODO(aduh95): move this to internal/bootstrap/web/* when the CLI flag is
370// removed.
371function setupNavigator() {
372 if (getEmbedderOptions().noBrowserGlobals ||
373 getOptionValue('--no-experimental-global-navigator')) {
374 return;
375 }
376
377 // https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object
378 exposeLazyInterfaces(globalThis, 'internal/navigator', ['Navigator']);
379 defineReplaceableLazyAttribute(globalThis, 'internal/navigator', ['navigator'], false);
380}
381
382function setupFFI() {
383 if (!getOptionValue('--experimental-ffi')) {

Callers 1

prepareExecutionFunction · 0.85

Calls 4

getEmbedderOptionsFunction · 0.85
getOptionValueFunction · 0.85
exposeLazyInterfacesFunction · 0.85

Tested by

no test coverage detected