Updates:
Summary: handleUncaughtException is broken for non-DOM guests
Status: Fixed
Comment #9 on issue 1942 by [email protected]: handleUncaughtException is
broken for non-DOM guests
https://code.google.com/p/google-caja/issues/detail?id=1942
I found the problem in your code: .run() does not take two callback
functions. It takes one callback function which is called whether or not
there was an error. Change the code to pass only one function to .run() and
it works.
Passing two arguments causes the first argument to be interpreted as your
imports ("api") object (I believe this is compatibility for a deprecated
caja.js API version), which is why your guest code found console ==
undefined.
(Closing this issue as fixed for the handleUncaughtException bug.)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.