Open alxndrsn opened 2 months ago
related #1711
Happy to provide a fix if the correct behaviour is known :slightly_smiling_face:
messages
objectlink
propCurrent failures:
constructor > deep props > with existing absolute key > te() > should return true
constructor > mid-level props > with existing absolute key > te() > should return true
constructor > single-level props > with not existing key > t() > should return key
constructor > single-level props > with not existing key > te() > should return false
constructor > top-level props > with existing absolute key > te() > should return true
control > deep props > with existing absolute key > te() > should return true
control > mid-level props > with existing absolute key > te() > should return true
control > top-level props > with existing absolute key > te() > should return true
hasOwnProperty > deep props > with existing absolute key > te() > should return true
hasOwnProperty > deep props > with existing nested key > t() > should return hi
hasOwnProperty > mid-level props > with existing absolute key > te() > should return true
hasOwnProperty > mid-level props > with existing nested key > t() > should return hi
hasOwnProperty > mid-level props > with existing nested key > te() > should return true
hasOwnProperty > single-level props > with existing key > t() > should return hi
hasOwnProperty > single-level props > with not existing key > t() > should return key
hasOwnProperty > single-level props > with not existing key > te() > should return false
hasOwnProperty > top-level props > with existing absolute key > te() > should return true
hasOwnProperty > top-level props > with existing nested key > t() > should return hi
hasOwnProperty > top-level props > with existing nested key > te() > should return true
isPrototypeOf > deep props > with existing absolute key > te() > should return true
isPrototypeOf > mid-level props > with existing absolute key > te() > should return true
isPrototypeOf > single-level props > with not existing key > t() > should return key
isPrototypeOf > single-level props > with not existing key > te() > should return false
isPrototypeOf > top-level props > with existing absolute key > te() > should return true
link > deep props > with existing absolute key > te() > should return true
link > mid-level props > with existing absolute key > te() > should return true
link > top-level props > with existing absolute key > te() > should return true
propertyIsEnumerable > deep props > with existing absolute key > te() > should return true
propertyIsEnumerable > mid-level props > with existing absolute key > te() > should return true
propertyIsEnumerable > single-level props > with not existing key > t() > should return key
propertyIsEnumerable > single-level props > with not existing key > te() > should return false
propertyIsEnumerable > top-level props > with existing absolute key > te() > should return true
__proto__ > deep props > with existing absolute key > te() > should return true
__proto__ > mid-level props > with existing absolute key > te() > should return true
__proto__ > top-level props > with existing absolute key > te() > should return true
toLocaleString > deep props > with existing absolute key > te() > should return true
toLocaleString > mid-level props > with existing absolute key > te() > should return true
toLocaleString > single-level props > with not existing key > t() > should return key
toLocaleString > single-level props > with not existing key > te() > should return false
toLocaleString > top-level props > with existing absolute key > te() > should return true
toString > deep props > with existing absolute key > te() > should return true
toString > mid-level props > with existing absolute key > te() > should return true
toString > single-level props > with not existing key > t() > should return key
toString > single-level props > with not existing key > te() > should return false
toString > top-level props > with existing absolute key > te() > should return true
valueOf > deep props > with existing absolute key > te() > should return true
valueOf > mid-level props > with existing absolute key > te() > should return true
valueOf > single-level props > with not existing key > t() > should return key
valueOf > single-level props > with not existing key > te() > should return false
valueOf > top-level props > with existing absolute key > te() > should return true
Reporting a bug?
Similar to
vue-i18n
, using javascript builtins in key paths can have surprising results.Ref:
Expected behavior
Keys should be handled consistently, or explicitly rejected if not supported.
Reproduction
https://github.com/intlify/vue-i18n-next/compare/master...alxndrsn:builtins?expand=1#diff-38b7f4833b6d1b2e7a9f81900841139df0e91381af1eae14cdb1f1ce432f465a
Example results:
System Info
Screenshot
No response
Additional context
No response
Validations