aboutsummaryrefslogtreecommitdiff
path: root/trace-template-for-CALL.old.js
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2024-02-14 23:13:36 +0100
committerWojtek Kosior <koszko@koszko.org>2024-02-14 23:19:19 +0100
commitd761f509f2e0ea2503f7f75014e396cb6bb26802 (patch)
treeb36d65029f5305781e73ce629517103a2cbd179d /trace-template-for-CALL.old.js
downloadtracifyjs-apprentice.tar.gz
tracifyjs-apprentice.zip
Initial commit.HEADapprentice
Diffstat (limited to 'trace-template-for-CALL.old.js')
-rw-r--r--trace-template-for-CALL.old.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/trace-template-for-CALL.old.js b/trace-template-for-CALL.old.js
new file mode 100644
index 00000000..34d1be25
--- /dev/null
+++ b/trace-template-for-CALL.old.js
@@ -0,0 +1,10 @@
+(functionObject =>
+ ((...traced_args) => tracing.record_call_end(
+ tracing.record_call_start(
+ /*line**/LINE_NUMBER/**/,
+ /*col**/COL_NUMBER/**/,
+ ...traced_args),
+ () => (functionObject/*optional*/(...traced_args))
+ ))
+ /*parented_args**/(...COMMA_SEPARATED_ARGS)/**/)
+(/*expression**/FUN_EXPR/**/)