Skip to content

Commit 122e4de

Browse files
committed
Get tests passing
1 parent 759c614 commit 122e4de

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/wasm/testdata/expected-cjs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ module.exports = class Up {
2828
}
2929
}
3030
fetch() {
31-
const traced = ()=>{
31+
const __apm$traced = ()=>{
3232
console.log('fetch');
3333
};
34-
if (!tr_ch_apm$up_fetch.hasSubscribers) return traced();
35-
return tr_ch_apm$up_fetch.traceSync(traced, {
34+
if (!tr_ch_apm$up_fetch.hasSubscribers) return __apm$traced();
35+
return tr_ch_apm$up_fetch.traceSync(__apm$traced, {
3636
arguments,
3737
self: this
3838
});

tests/wasm/testdata/expected.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ export class Up {
2828
}
2929
}
3030
fetch() {
31-
const traced = ()=>{
31+
const __apm$traced = ()=>{
3232
console.log('fetch');
3333
};
34-
if (!tr_ch_apm$up_fetch.hasSubscribers) return traced();
35-
return tr_ch_apm$up_fetch.traceSync(traced, {
34+
if (!tr_ch_apm$up_fetch.hasSubscribers) return __apm$traced();
35+
return tr_ch_apm$up_fetch.traceSync(__apm$traced, {
3636
arguments,
3737
self: this
3838
});

0 commit comments

Comments
 (0)