Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

[Buffer] length is not a readonly attribute #172

Closed
@haoxli

Description

@haoxli

readonly attribute unsigned long length;

In buffer.md, the length of Buffer should be readonly, but actually it can be modified.

var buff = new Buffer(8);
var original = buff.length;
buff.length = buff.length + 1;
print(original);
print(buff.length);

The print result is 9, not the expected 8.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions