-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow rendering properties of primitive types that are not objects (#618
) * prevent value from being returned by Context.prototype.lookup if lookupHit is false * add test for renderability of Array.length via dot notation * Remove `typeof obj === 'object'` constraint in prop lookup Allows rendering properties of primitive types that are not objects, such as a string. * pop lookup needs to use hasOwnProperty for non-objs * re-add constraint in prop lookup, but make property lookups for primitives possible through dot notation * add test to address #589 specifically * enhance readability of primitiveHasOwnProperty and add comments to explain why it is used in one case but not the other
- Loading branch information
1 parent
efdeb55
commit a2699e4
Showing
4 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,6 @@ | |
truthy: { | ||
zero: 0, | ||
notTrue: false | ||
} | ||
}, | ||
singletonList: [{singletonItem: "singleton item"}] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters