Skip to content

The length property of a string is enumerable #973

Closed

Description

@tofpie

Describe the bug
The length property of a string is enumerable, but it should not.

To Reproduce
This JavaScript code reproduces the issue:

>> "".propertyIsEnumerable("length")
true
>> new String("").propertyIsEnumerable("length")
true

Expected behavior
"".propertyIsEnumerable("length") and new String("").propertyIsEnumerable("length") should be false.

Build environment

  • OS: Windows 10
  • Version: 0.10
  • Target triple: x86_64-pc-windows-msvc
  • Rustc version: rustc 1.48.0 (7eac88abb 2020-11-16)

Additional context
None

Activity

  1. added
    A-Bug
    on Dec 16, 2020
  2. added
    C-Builtins
    on Dec 16, 2020
  3. added this to the v0.11.0 milestone on Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BugC-Builtins

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions