Skip to content

Commit

Permalink
fix: an ObjectProxy with a property size would throw an assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschot committed Oct 14, 2021
1 parent 0d75066 commit 1c6d390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ember/-internals/metal/lib/is_empty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function isEmpty(obj: any): boolean {
return none;
}

if (typeof obj.size === 'number') {
if (typeof obj.unknownProperty !== 'function' && typeof obj.size === 'number') {
return !obj.size;
}

Expand Down

0 comments on commit 1c6d390

Please sign in to comment.