• Philip Chimento's avatar
    object: Support fields defined in ancestor classes · 9f182bd6
    Philip Chimento authored
    We define a JS property with getter and setter for a GObject field in
    resolve_impl() (where lazy properties are defined) when JS code tries to
    access a field. The getter and setter retrieve the field's GIFieldInfo
    information from a cache, using a key that is built into the getter and
    setter.
    
    Because this is done during the resolve operation, and the resolve
    operation can occur multiple times going up the prototype chain, the JS
    property may end up on a prototype that is an ancestor of the object's
    direct prototype. So the GIFieldInfo may end up on any prototype in the
    prototype chain, and so we have to search through the prototype chain
    for it.
    
    Closes: #223.
    9f182bd6
Name
Last commit
Last update
..
debugger Loading commit data...
extra Loading commit data...
js Loading commit data...
scripts Loading commit data...
debugger-test.sh Loading commit data...
debugger.test.in Loading commit data...
minijasmine.cpp Loading commit data...
minijasmine.test.in Loading commit data...
script.test.in Loading commit data...