Skip to content

runtime: SIGSEGV in native-constructor-identity test (new BigInt()/Symbol()) #6241

Description

@proggeramlug

Summary

SIGSEGV (exit 139) running test/js/bun/jsc/native-constructor-identity.test.ts from Bun's suite. Pre-existing — reproduces on a clean main build.

Repro

The file asserts that call-only builtins throw when new-ed:

expect(() => new (BigInt as any)(1)).toThrow(TypeError);
expect(() => new (Symbol as any)("x")).toThrow(TypeError);

The file SIGSEGVs (not yet minimized). Likely new BigInt(...) / new Symbol(...) (constructing a non-constructable builtin) or the expect.any(Ctor) path.

Found via running Bun's own test suite through perry.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed defect or regression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions