Skip to content

SolarLabyrinth/sentry-bun-bytecode-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentry Bun Bytecode Repro

Minimal repro for a crash with Bun's --bytecode and @sentry/bun@10.55.0

Environment

  • Linux
  • Bun 1.3.14
  • @sentry/bun 10.55.0

Reproduction

Steps to Reproduce Failure: Fails with v10.54.0 and v10.55.0

bun i @sentry/bun@10.55.0
bun build main.ts --compile --format=esm --bytecode --outfile main
./main

This build fine with previous versions:

bun i @sentry/bun@10.53.1
bun build main.ts --compile --format=esm --bytecode --outfile main
./main

This also builds fine without --bytecode:

bun i @sentry/bun@10.55.0
bun build main.ts --compile --format=esm --outfile main
./main

Expected Behavior

Success!

Actual Behavior

17582 |   name;
17583 |   supportedVersions;
17584 |   patch;
17585 |   unpatch;
17586 |   constructor(name, supportedVersions, patch, unpatch) {
17587 |     this.name = normalize4(name);
                                  ^
ReferenceError: normalize4 is not defined
      at new InstrumentationNodeModuleFile (/$bunfs/root/main:17587:27)
      at _addPatchingExecute (/$bunfs/root/main:24491:45)
      at init (/$bunfs/root/main:24485:47)
      at new InstrumentationBase (/$bunfs/root/main:17340:28)
      at new GraphQLInstrumentation (/$bunfs/root/main:24478:10)
      at /$bunfs/root/main:20532:53
      at setupOnce (/$bunfs/root/main:24755:24)
      at setupIntegration (/$bunfs/root/main:8502:26)
      at /$bunfs/root/main:8483:23
      at forEach (native:1:11)

About

Minimal repro for a crash with Bun's --bytecode and @sentry/bun@10.55.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors