NATIVE

settings_applicationsObject  >   settings_applicationsProxy

NATIVE

Editing
  • account_tree
  • bug_report

ObjectdescriptorgetOwnPropertyDescriptor(Objecttarget, stringproperty]])

Object.getOwnPropertyDescriptor()와 같은 작업에서 사용되는 객체 내부 메소드 [[GetOwnProperty]]에 대한 트랩(trap)이다.

설명

targetproperty 매개변수가 getOwnPropertyDescriptor() 메소드에 전달되어 핸들러에 바인딩된다.

구문

형식
new Proxy(target, {
  getOwnPropertyDescriptor(target, property) { }
})

매개 변수

Objecttarget선택

대상 객체를 나타낸다.

stringproperty선택

디스크립션(description)을 검색할 프로퍼티의 이름을 나타낸다.

반환

Objectdescriptor

해당 프로퍼티의 디스크립터(descriptor)를 나타내는 객체를 반환한다.

지원 웹브라우저