aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/napi.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-04 03:47:56 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-04 03:47:56 -0700
commit0a0d3ba8505d057251a6059da4252abb4f699fb1 (patch)
treefeb44e5385e092af647fbbd8d9a7959a5ede2a00 /src/bun.js/bindings/napi.cpp
parent1d8431a92cbb17a0c744743ce99430d5e6cde014 (diff)
downloadbun-jarred/profiled-call.tar.gz
bun-jarred/profiled-call.tar.zst
bun-jarred/profiled-call.zip
Use profiled calljarred/profiled-call
Diffstat (limited to 'src/bun.js/bindings/napi.cpp')
-rw-r--r--src/bun.js/bindings/napi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/napi.cpp b/src/bun.js/bindings/napi.cpp
index 8fffcc05f..7d559374e 100644
--- a/src/bun.js/bindings/napi.cpp
+++ b/src/bun.js/bindings/napi.cpp
@@ -1867,7 +1867,7 @@ extern "C" napi_status napi_call_function(napi_env env, napi_value recv_napi,
if (thisValue.isEmpty()) {
thisValue = JSC::jsUndefined();
}
- JSC::JSValue result = JSC::call(globalObject, funcValue, callData, thisValue, args);
+ JSC::JSValue result = JSC::profiledCall(globalObject, ProfilingReason::Other, funcValue, callData, thisValue, args);
if (result_ptr) {
*result_ptr = toNapi(result);