benjamn / benjamn/cls

Allow .name as a static property

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently the constructor is a declared function with `.name === "constructor"`, and `populate(constructor, newStatics, base)` is not able to override that property.

The constructor should be an anonymous function expression instead, so that one can set its `.name` property (or not) as one sees fit.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.