Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Feb 11, 2025
1 parent 853a07d commit 057611b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/@glimmer/manager/lib/internal/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ const HELPER_MANAGERS = new WeakMap<object, CustomHelperManager | Helper>();

///////////

const getPrototypeOf = Reflect.getPrototypeOf;
/**
* There is also Reflect.getPrototypeOf,
* which errors when non-objects are passed.
*
* Since our conditional for figuring out whether to render primitives or not
* may contain non-object values, we don't want to throw errors when we call this.
*/
const getPrototypeOf = Object.getPrototypeOf;

function setManager<Def extends object>(
map: WeakMap<object, object>,
Expand Down

0 comments on commit 057611b

Please sign in to comment.