Skip to content

Commit

Permalink
chore: return constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Nov 22, 2024
1 parent 619feb1 commit ac7538b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/app/lib/internal/registry/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ function createDeprecationProxy(instance) {
return new Proxy(instance, {
get(target, prop, receiver) {
const originalMethod = target[prop];
if (prop === 'constructor') {
return target.constructor;

Check warning on line 285 in packages/app/lib/internal/registry/namespace.js

View check run for this annotation

Codecov / codecov/patch

packages/app/lib/internal/registry/namespace.js#L285

Added line #L285 was not covered by tests
}
if (typeof originalMethod === 'function') {
return function (...args) {
const isModularMethod = args.includes(MODULAR_DEPRECATION_ARG);
Expand Down

0 comments on commit ac7538b

Please sign in to comment.