mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
This is mostly stolen from Gecko. As there, we define the unforgeable members on an object stored in the slots of the prototype object. They are then copied onto instance objects when they are instantiated. It should be noted that proxy objects see their unforgeable memebers defined on their expando object. Unforgeable attributes aren't properly inherited in codegen (in a similar fashion as getters and setters as filed in #5875) and require to be redefined in derived interfaces. Fortunately, there are currently no such interfaces. No unforgeable members can be included into the TestBinding interfaces for good measure because they are not compatible with setters. Given the unforgeable holder object has the same prototype as actual instances of the interface, the finalize hook needs to check its slot pointer for nullity before dropping it. The new failing test isn't related to Unforgeable attributes, but to the fact that all Document instances currently have a Location, even if their window isn't in a browsing context. |
||
---|---|---|
.. | ||
parser | ||
ply | ||
BindingGen.py | ||
Bindings.conf | ||
CodegenRust.py | ||
Configuration.py | ||
GenerateCSS2PropertiesWebIDL.py | ||
GlobalGen.py |