| 911 | // |
| 912 | |
| 913 | void Object::EndClassDefinition() |
| 914 | { |
| 915 | auto &obj = *(Object *)GetOwnPropObj(_T("Prototype")); |
| 916 | // Each variable declaration created a 'missing' property in the class or prototype object to prevent |
| 917 | // duplicate or conflicting declarations. Remove them now so that the declaration acts like a normal |
| 918 | // assignment (i.e. invokes property setters and __Set), for flexibility and consistency; and so that |
| 919 | // SYM_MISSING doesn't need special handling at runtime. |
| 920 | RemoveMissingProperties(); |
| 921 | obj.RemoveMissingProperties(); |
| 922 | } |
| 923 | |
| 924 | void Object::RemoveMissingProperties() |
| 925 | { |
no test coverage detected