Reviewers: ben, Description: Currently, when debugging cajoled code under, for example Firebug, the stack trace looks mostly populated by non-informative anonymous function markers. Firebug will pick up the name of named functions, so we should name functions when we can.
Named functions already cajoled to named functions. In addition, when cajoling an anonymous function, if the function is directly used to initialize a literally named property or variable, pick up the variable or property name from the context and mangle it into the function's name. Many anonymous uncajoled functions in our own sources are now named as well. Please review this at http://codereview.appspot.com/10044 Affected files: M src/com/google/caja/cajita.js M src/com/google/caja/log-to-console.js M src/com/google/caja/opensocial/applet/testbed.js M src/com/google/caja/parser/quasiliteral/CajitaRewriter.java M src/com/google/caja/parser/quasiliteral/DefaultValijaRewriter.java M src/com/google/caja/parser/quasiliteral/QuasiBuilder.java M src/com/google/caja/parser/quasiliteral/QuasiNode.java M src/com/google/caja/parser/quasiliteral/RewriterMessageType.java M src/com/google/caja/parser/quasiliteral/Rule.java M src/com/google/caja/plugin/stages/DebuggingSymbolsStage.java M src/com/google/caja/triv-logger.js M src/com/google/caja/valija-cajita.js M tests/com/google/caja/opensocial/example-rewritten.xml M tests/com/google/caja/opensocial/service/CajolingServiceTest.java M tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java M tests/com/google/caja/parser/quasiliteral/DefaultValijaRewriterTest.java M tests/com/google/caja/plugin/stages/DebuggingSymbolsStageTest.java --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to http://groups.google.com/group/google-caja-discuss To unsubscribe, email [EMAIL PROTECTED] -~----------~----~----~----~------~----~------~--~---
