mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65161 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
18 lines
471 B
Bash
Executable File
18 lines
471 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# find the name of the log file to process, it must not start with a dash.
|
|
log_file="v8.log"
|
|
for arg in "$@"
|
|
do
|
|
if ! expr "X${arg}" : "^X-" > /dev/null; then
|
|
log_file=${arg}
|
|
fi
|
|
done
|
|
|
|
tools_path=`cd $(dirname "$0");pwd`
|
|
d8_exec=$("${tools_path}/find-d8.sh" "$log_file") || exit 1
|
|
|
|
# nm spits out 'no symbols found' messages to stderr.
|
|
cat $log_file | $d8_exec --allow-natives-syntax \
|
|
--module $tools_path/parse-processor-driver.mjs -- $@ 2>/dev/null
|