Skip to content

bug: spec test throws error if mixin prop has a default value #6461

@Altioc

Description

@Altioc

Prerequisites

Stencil Version

4.38.3

Current Behavior

If you run spec tests for a component that uses a Mixin that defines a prop with a default value then it will fail with an error stating ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor

Expected Behavior

Spec continues as if the prop had been defined on the base component

System Info

System: node 20.12.1
    Platform: linux (6.1.43)
   CPU Model: AMD EPYC (2 cpus)
    Compiler: /project/workspace/node_modules/@stencil/core/compiler/stencil.js
       Build: 1762374454
     Stencil: 4.38.3 😋
  TypeScript: 5.9.3
      Rollup: 4.34.9
      Parse5: 7.2.1
      jQuery: 4.0.0-pre
      Terser: 5.37.0

Steps to Reproduce

npm install
npm run test

Code Reproduction URL

https://codesandbox.io/p/sandbox/crimson-start-r787w7

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions