Replaced length function with virtual length property

That's how hidden properties are documented.