Skip to content

Commit

Permalink
Implementation for RFC #756
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 16, 2021
1 parent 6f9b8b1 commit 57d246d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@glimmer/manager/lib/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
import { CustomComponentManager } from './component';
import { CustomModifierManager } from './modifier';
import { CustomHelperManager } from './helper';
import { FunctionHelperManager } from '../internal/defaults';

type Manager = ComponentManager<unknown> | ModifierManager<unknown> | HelperManager<unknown>;

Expand All @@ -33,3 +34,5 @@ export function setHelperManager<O extends Owner, T extends object>(
): T {
return setInternalHelperManager(new CustomHelperManager(factory), obj);
}

setHelperManager(() => new FunctionHelperManager(), Function.prototype);

0 comments on commit 57d246d

Please sign in to comment.