Closed Bug 1209919 Opened 7 years ago Closed 7 years ago
Improving naming and comments in Structured
sfink gave me extremely useful hints about naming and comments in StructuredCloneHelper.
+ // Like Write() but it support the transferring of objects. supports + // The parent object is set internally just during the Read(). This method + // can be used by custom read functions to retrieve it. That sounds like the parent object has something to do with CustomReadHandler. Could you perhaps drop 'custom' from the comment // Implementations of the virtual methods to allow cloning of DOM data Is a bit vague "DOM data". Perhaps something like "Implementations of the virtual methods to allow cloning of objects which JS engine itself doesn't clone." + // These 2 static methods are useful to read/write fully serializable objects. + // They can be used by custom StructuredCloneHolderBase classes to + // serialize standard objects such as ImageData, CryptoKey, RTCCertificate, + // etc." Why the word "standard" there. + ContextSupport mSupportedContexts; I would probably call it mSupportedContext (without the 's'), but either way.
You need to log in before you can comment on or make changes to this bug.