New issue
Advanced search Search tips

Issue 878074 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 4
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 3
Type: Bug



Sign in to add a comment

IDL attribute getters and setters should have name property set

Project Member Reported by timothygu@chromium.org, Aug 27

Issue description

Chrome Version: (copy from chrome://version) 70.0.3534.0 (Official Build) canary (64-bit)
OS: (e.g. Win10, MacOS 10.12, etc...) macOS 10.13.6

What steps will reproduce the problem?
(1) Object.getOwnPropertyDescriptor(URL.prototype, "hash").get.name
(2) Object.getOwnPropertyDescriptor(URL.prototype, "hash").set.name

What is the expected result?
(1) "get hash" is shown
(2) "set hash" is shown

This is the case per Web IDL spec
(1) https://heycam.github.io/webidl/#dfn-attribute-getter step 4
(2) https://heycam.github.io/webidl/#dfn-attribute-setter step 6

What happens instead?
Both are the empty string.


Please use labels and text to provide additional information.

If this is a regression (i.e., worked before), please consider using the
bisect tool (https://www.chromium.org/developers/bisect-builds-py) to help
us identify the root cause and more rapidly triage the issue.

For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.


 
Firefox and Safari both behave per spec.
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 4

Status: Fixed (was: Started)
Labels: M-71

Sign in to add a comment