|
|
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.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+971 lines, -459 lines) |
Patch |
 |
M |
src/com/google/caja/cajita.js
|
View
|
|
39 chunks |
+136 lines, -100 lines |
2 comments
|
Download
|
 |
M |
src/com/google/caja/log-to-console.js
|
View
|
|
2 chunks |
+17 lines, -7 lines |
0 comments
|
Download
|
 |
M |
src/com/google/caja/opensocial/applet/testbed.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/com/google/caja/parser/quasiliteral/CajitaRewriter.java
|
View
|
|
12 chunks |
+240 lines, -179 lines |
2 comments
|
Download
|
 |
M |
src/com/google/caja/parser/quasiliteral/DefaultValijaRewriter.java
|
View
|
|
20 chunks |
+306 lines, -116 lines |
6 comments
|
Download
|
 |
M |
src/com/google/caja/parser/quasiliteral/QuasiBuilder.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/com/google/caja/parser/quasiliteral/QuasiNode.java
|
View
|
|
5 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/com/google/caja/parser/quasiliteral/RewriterMessageType.java
|
View
|
|
1 chunk |
+6 lines, -0 lines |
1 comment
|
Download
|
 |
M |
src/com/google/caja/parser/quasiliteral/Rule.java
|
View
|
|
3 chunks |
+88 lines, -20 lines |
0 comments
|
Download
|
 |
M |
src/com/google/caja/plugin/stages/DebuggingSymbolsStage.java
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/com/google/caja/triv-logger.js
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/com/google/caja/valija-cajita.js
|
View
|
|
5 chunks |
+15 lines, -9 lines |
0 comments
|
Download
|
 |
M |
tests/com/google/caja/opensocial/example-rewritten.xml
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/com/google/caja/opensocial/service/CajolingServiceTest.java
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java
|
View
|
|
4 chunks |
+58 lines, -8 lines |
1 comment
|
Download
|
 |
M |
tests/com/google/caja/parser/quasiliteral/DefaultValijaRewriterTest.java
|
View
|
|
2 chunks |
+84 lines, -1 line |
0 comments
|
Download
|
 |
M |
tests/com/google/caja/plugin/stages/DebuggingSymbolsStageTest.java
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 5
|