Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    isc.shallowClone is no longer including functions from the source object's superclass

    version: v14.1p_2025-06-24/LGPL Development Only
    browser: Chrome

    Test Case:
    isc.shallowClone(isc.RestDataSource.create()).getCacheData

    Expected Result: the function definition for getCacheData from the superclass DataSource
    Actual Result: undefined

    This is causing bugs in FilterBuilder.

    It appears to be caused by isc.addPropertyList now ignoring names that do not satisfy Object.hasOwn.

    #2
    The "test case" you provided is not valid usage (you cannot clone instances of SmartClient classes), but even if it were valid, it is also correct for addProperties() to avoid copying down inherited methods.

    We're assuming that your invalid usage is causing an issue somewhere in your code that customizes FilterBuilder.

    If you actually meant that there is a bug in FilterBuilder which occurs with valid usage, please provide a test case for that.

    Comment

    Working...
    X