<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>41937</bug_id>
          
          <creation_ts>2010-07-09 00:53:25 -0700</creation_ts>
          <short_desc>JavaScriptCore C API should provide a way to query property attributes</short_desc>
          <delta_ts>2012-03-13 13:09:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Hansen">kent.hansen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>cmarcelo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>248801</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Hansen">kent.hansen</who>
    <bug_when>2010-07-09 00:53:25 -0700</bug_when>
    <thetext>It&apos;s possible to pass attributes to JSObjectSetProperty(), but there&apos;s no way to query a property&apos;s attributes.

The work-around is to call the original value of Object.getOwnPropertyDescriptor and query the properties of the resulting object (e.g. enumerable:false --&gt; kJSPropertyAttributeDontEnum), but that&apos;s not so nice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248807</commentid>
    <comment_count>1</comment_count>
    <who name="Kent Hansen">kent.hansen</who>
    <bug_when>2010-07-09 00:58:50 -0700</bug_when>
    <thetext>This relates to https://bugs.webkit.org/show_bug.cgi?id=41769</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577714</commentid>
    <comment_count>2</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2012-03-13 13:09:02 -0700</bug_when>
    <thetext>The JSC API should probably offer a low-level API of reflection traps matching set of 9 traps in 8.12 - e.g. we should have something matching [[GetOwnProperty]], which would return a descriptor.  We may also want to consider any new reflection APIs being introduced in ES6 (e.g. direct proxies) in designing any API here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>