Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
cd1415c
Revert "crypto: make timingSafeEqual faster for Uint8Array"
tniessen Jun 8, 2024
d02907e
src: remove misplaced windows code under posix guard in node.cc
thisalihassan Apr 15, 2024
6ea72a5
doc: add test_runner to subsystem
rluvaton May 1, 2024
56e19e3
test: drop test-crypto-timing-safe-equal-benchmarks
RafaelGSS May 1, 2024
9587ae9
doc: simplify copy-pasting of `branch-diff` commands
aduh95 May 2, 2024
5161d95
zlib: expose zlib.crc32()
joyeecheung May 2, 2024
739adf9
watch: fix arguments parsing
MoLow May 2, 2024
a5f3dd1
string_decoder: throw an error when writing a too long buffer
kylo5aby Mar 26, 2024
cf817e1
test_runner: preserve hook promise when executed twice
MoLow May 4, 2024
918962d
build: make simdjson a public dep in GN build
zcbenz May 5, 2024
d7eba50
util: improve `isInsideNodeModules`
Uzlopak Mar 21, 2024
8fc52b3
src: fix test local edge case
ShogunPanda Apr 26, 2024
978ee0a
src: only apply fix in main thread
ShogunPanda May 5, 2024
a3b2012
doc: add OpenSSL errors to API docs
j3lamp Jan 27, 2021
0addeb2
test: skip v8-updates/test-linux-perf-logger
targos May 5, 2024
b83fbf8
tools: fix V8 update workflow
aduh95 May 5, 2024
8f8fb91
tools: specify a commit-message for V8 update workflow
aduh95 May 5, 2024
91fadac
doc: make docs more welcoming and descriptive for newcomers
srknzl May 5, 2024
97e0fef
doc: add more definitions to GLOSSARY.md
avivkeller May 5, 2024
5215b6f
build, tools: copy release assets to staging R2 bucket once built
flakey5 May 6, 2024
514f01e
tools: use sccache GitHub action
targos May 6, 2024
1dce5de
test: skip some console tests on dumb terminal
AdamMajer May 6, 2024
16ae2b2
buffer: remove lines setting indexes to integer value
kylo5aby May 6, 2024
2246d4f
test: crypto-rsa-dsa testing for dynamic openssl
mhdawson May 1, 2024
121ea13
process: improve event-loop
Uzlopak May 6, 2024
12512c3
doc: add pimterry to collaborators
pimterry May 7, 2024
01eff58
tools: update `gr2m/create-or-update-pull-request-action`
aduh95 May 7, 2024
1be8232
build: drop base64 dep in GN build
zcbenz May 8, 2024
403a4a7
tools: update lint-md-dependencies to rollup@4.17.2
nodejs-github-bot May 8, 2024
794e450
console: colorize console error and warn
MrJithil Feb 1, 2024
986bfa2
test: add common.expectRequiredModule()
joyeecheung May 7, 2024
5700600
tools: prepare custom rules for ESLint v9
targos May 9, 2024
3df3e37
doc: add names next to release key bash commands
avivkeller May 9, 2024
1ff8f31
watch: enable passthrough ipc in watch mode
znewsham May 9, 2024
2dcbf18
src: avoid unused variable 'error' warning
targos May 10, 2024
dce0300
tools: support != in test status files
joyeecheung Apr 29, 2024
e98c305
tools: support max_virtual_memory test configuration
joyeecheung Apr 29, 2024
9d485b4
tools: fix get_asan_state() in tools/test.py
joyeecheung May 2, 2024
0830b31
tools: fix doc update action
marco-ippolito May 10, 2024
1e429d1
doc: exclude commits with baking-for-lts
marco-ippolito May 10, 2024
6001b16
test: reduce memory usage of test-worker-stdio
AdamMajer May 10, 2024
ae5d47d
doc: watermark string behavior
benjamingr May 10, 2024
4bf3d44
doc: update fs read documentation for clarity
mertcanaltin May 10, 2024
48c15d0
build: remove deprecated calls for argument groups
VoltrexKeyva May 11, 2024
311bdc6
test: add http agent to `executionAsyncResource`
psj-tar-gz Aug 29, 2020
b162aea
src: fix typo Unabled -> Unable
SimonSiefke May 11, 2024
8d628c3
buffer: use size_t instead of uint32_t to avoid segmentation fault
Xstoudi May 11, 2024
585f2a2
doc: update `fs.realpath` documentation
sinkhaha May 11, 2024
184cfe5
benchmark: filter non-present deps from `start-cli-version`
AdamMajer May 11, 2024
7d38c2e
fs: keep fs.promises.readFile read until EOF is reached
kylo5aby May 11, 2024
0638274
test: fix DNS cancel tests
szmarczak May 11, 2024
556e9a2
test: move `test-http-server-request-timeouts-mixed` to sequential
sonimadhuri May 11, 2024
3aa3337
doc: fix `dns.lookup` family `0` and `all` descriptions
domdomegg May 11, 2024
086626f
doc: add examples and notes to http server.close et al
mmarchini May 11, 2024
75dd009
events: replace NodeCustomEvent with CustomEvent
F3n67u May 11, 2024
4102244
test: updated for each to for of in test file
lyannel May 11, 2024
8cb1312
inspector: introduce the `--inspect-wait` flag
cola119 May 11, 2024
d5ab1de
meta: move `@anonrig` to TSC regular member
anonrig May 11, 2024
b774544
deps: enable unbundling of simdjson, simdutf, ada
lemire May 11, 2024
f6290bc
tools: add --certify-safe to nci-ci
mcollina May 12, 2024
74753ed
events: add stop propagation flag to `Event.stopImmediatePropagation`
mikemadest May 12, 2024
0be8123
test: improve coverage of lib/readline.js
pd4d10 May 12, 2024
af27225
doc: add example for `execFileSync` method and ref to stdio
evanshortiss May 12, 2024
4ae4f7e
watch: allow listening for grouped changes
matthieusieben May 12, 2024
eceac78
repl: fix disruptive autocomplete without inspector
Linkgoron May 12, 2024
d08c9a6
test: test pipeline `end` on transform streams
aloisklink Jul 30, 2023
e62c6e2
doc: document pipeline with `end` option
aloisklink Jul 30, 2023
9512839
src: allow preventing debug signal handler start
codebytere May 12, 2024
800b6f6
test: replace `forEach()` in `test-stream-pipe-unpipe-stream`
DevPres May 12, 2024
7603a51
util: fix `%s` format behavior with `Symbol.toPrimitive`
Mar 18, 2024
be309bd
doc: mention push.followTags config
RafaelGSS May 12, 2024
af29120
stream: use `ByteLengthQueuingStrategy` when not in `objectMode`
CGQAQ May 12, 2024
cc74bf7
test: fix broken env fuzzer by initializing process
AdamKorcz May 12, 2024
5fb829b
test: add fuzzer for `ClientHelloParser`
AdamKorcz May 12, 2024
7dda156
test: add fuzzer for native/js string conversion
AdamKorcz Dec 11, 2023
954d2ad
cluster: replace `forEach` with `for-of` loop
jerome-benoit May 12, 2024
033f985
src: use `S_ISDIR` to check if the file is a directory
theanarkh May 12, 2024
972eafd
events: update MaxListenersExceededWarning message log
sinkhaha May 12, 2024
3a1d17a
doc: mention quicker way to build docs
crawford May 12, 2024
1d01325
test: verify request payload is uploaded consistently
awwright May 12, 2024
0fb7c18
crypto: fix duplicated switch-case return values
0o001 May 12, 2024
0513e07
test: use `for-of` instead of `forEach`
gibbyfree May 12, 2024
8b3e83b
buffer: even faster atob
lemire May 12, 2024
227093b
assert: add deep equal check for more Error type
kylo5aby May 12, 2024
0c5e589
test, crypto: use correct object on assert
xicilion May 12, 2024
65fa95d
test: add `Debugger.setInstrumentationBreakpoint` known issue
ulitink May 12, 2024
be9d6f2
url,tools,benchmark: replace deprecated `substr()`
May 12, 2024
89a910b
src: fix Worker termination in `inspector.waitForDebugger`
daeyeon May 13, 2024
2f3f2ff
doc: update hljs with the latest styles
avivkeller May 13, 2024
f82d086
path: fix toNamespacedPath on Windows
huseyinacacak-janea May 13, 2024
0289a02
test_runner: fix watch mode race condition
MoLow May 14, 2024
de54123
tools: fix v8-update workflow
targos May 14, 2024
da4dbfc
doc: remove reference to AUTHORS file
marco-ippolito May 14, 2024
d54aa47
test_runner: support test plans
cjihrig May 9, 2024
473fa73
cli: allow running wasm in limited vmem with --disable-wasm-trap-handler
joyeecheung Apr 19, 2024
0bf200b
2024-06-20, Version 20.15.0 'Iron' (LTS)
marco-ippolito Jun 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
util: improve isInsideNodeModules
PR-URL: #52147
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Uzlopak authored and marco-ippolito committed Jun 17, 2024
commit d7eba50cf33cb7f8144de3c6b87e86a3db3a261f
9 changes: 7 additions & 2 deletions lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const {
SafeSet,
SafeWeakMap,
SafeWeakRef,
StringPrototypeIncludes,
StringPrototypeReplace,
StringPrototypeToLowerCase,
StringPrototypeToUpperCase,
Expand Down Expand Up @@ -473,7 +474,7 @@ function spliceOne(list, index) {
list.pop();
}

const kNodeModulesRE = /^(.*)[\\/]node_modules[\\/]/;
const kNodeModulesRE = /^(?:.*)[\\/]node_modules[\\/]/;

let getStructuredStack;

Expand Down Expand Up @@ -503,8 +504,12 @@ function isInsideNodeModules() {
const filename = frame.getFileName();
// If a filename does not start with / or contain \,
// it's likely from Node.js core.
if (RegExpPrototypeExec(/^\/|\\/, filename) === null)
if (
filename[0] !== '/' &&
StringPrototypeIncludes(filename, '\\') === false
) {
continue;
}
return RegExpPrototypeExec(kNodeModulesRE, filename) !== null;
}
}
Expand Down