oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.09k stars 2.47k forks source link

Segfault when decorating computed property #10887

Open lucasvanhalst opened 1 week ago

lucasvanhalst commented 1 week ago

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