[Webkit-unassigned] [Bug 106475] Web Inspector: Correct formatting in inspector-test.js

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 10 10:15:54 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=106475





--- Comment #5 from Pavel Feldman <pfeldman at chromium.org>  2013-01-10 10:17:46 PST ---
> Can you help me understand? What makes this function different from other functions? I don't know what a namespace is in JavaScript and we have many other closures which are indented. (I also think that from a practical point of view this rule is bizarre but at least I'd like to know when to apply it).

Whenever the closure is added for the sake of the harness or framework with the sole purpose of serializing the content (such as this case and injected scripts), I think it does not make sense to indent. If JavaScript allowed us serializing and sending over entire files, we would do that instead of coming up with such closures.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list