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

Function isInStrictMode

lib/internal/repl/utils.js:290–299  ·  view source on GitHub ↗
(repl)

Source from the content-addressed store, hash-verified

288 }
289
290 function isInStrictMode(repl) {
291 return repl.replMode === REPL_MODE_STRICT || ArrayPrototypeIncludes(
292 ArrayPrototypeMap(process.execArgv,
293 (e) => StringPrototypeReplaceAll(
294 StringPrototypeToLowerCase(e),
295 '_',
296 '-',
297 )),
298 '--use-strict');
299 }
300
301 // This returns a code preview for arbitrary input code.
302 function getInputPreview(input, callback) {

Callers 1

getInputPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…