sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
114 stars 43 forks source link

Supported methods are not available as field names #621

Closed vbuchii closed 3 years ago

vbuchii commented 3 years ago

Let's say that we have next object: contentNodes = {}

Supported methods are not available as fields name

? "contentNodes.items = " contentNodes.items ? "contentNodes.count = " contentNodes.count

On Roku:

    contentnodes.items = invalid
    contentnodes.count = invalid

On BRS:

   contentnodes.items = [Function items]
   contentnodes.count = [Function count]

So, on Roku expression: if contentnodes.items = invalid or contentnodes.items[0] = invalid then is valid but while running tests not.

lkipke commented 3 years ago

Closing as a duplicate of #437