dosper7 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

getting console.a is not a function with <body onload="prettyPrint()"> #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to this page:
http://gmaps-utility-library-dev.googlecode.com/svn/trunk/extinfowindow/docs/exa
mples.html
(Please include HTML, not just your source code)

What is the expected output?  What do you see instead?
expected output is no error.
I see error "console.a is not a function"

What version are you using?  On what browser?
http://code.google.com/js/prettify.js
FF3

Please provide any additional information below.

Original issue reported on code.google.com by douglass...@earthlink.net on 19 Feb 2010 at 11:54

GoogleCodeExporter commented 8 years ago
just started working all of the sudden for some strange reason. please ignore.

Original comment by douglass...@earthlink.net on 20 Feb 2010 at 12:10

GoogleCodeExporter commented 8 years ago
now it shows up again.  strange. seems a little random.

Original comment by douglass...@earthlink.net on 20 Feb 2010 at 1:12

GoogleCodeExporter commented 8 years ago
Thanks for reporting the problem.  Fixed at revision 106.
The problem is that in the minimized version
    console.log(...)
turns into
    console.a(...)

The exception handler checks for that the console exists before trying to log 
an exception, but then the rewritten exception handler fails in a different way.

Original comment by mikesamuel@gmail.com on 19 Jul 2010 at 8:33