Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when decorating computed property #10887

Open
lucasvanhalst opened this issue May 7, 2024 · 0 comments
Open

Segfault when decorating computed property #10887

lucasvanhalst opened this issue May 7, 2024 · 0 comments
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@lucasvanhalst
Copy link

How can we reproduce the crash?

Decorate any computed property and it triggers a segfault while transpiling the code.

JavaScript/TypeScript code that reproduces the crash?

import {IsString} from 'class-validator';

export enum ExampleEnum {
    ONE = '1',
    TWO = '2',
}

export class Example {
    @IsString()
    [ExampleEnum.ONE]: string;
}

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.6 (e58d67b) on macos aarch64 [AutoCommand]

Segmentation fault at address 0x00000008

  • 2 unknown/js code
  • src.js_printer.NewPrinter
  • src.js_printer.NewPrinter
  • src.bundler.Bundler.printWithSourceMap__anon_301037
  • src.bun.js.module_loader.ModuleLoader.transpileSourceCode__anon_300818
  • Bun__transpileFile
  • Bun::fetchESMSourceCodeAsync
  • Zig::GlobalObject::moduleLoaderFetch
  • JSC::moduleLoaderFetch
@lucasvanhalst lucasvanhalst added bug Something isn't working crash An issue that could cause a crash labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

1 participant