Using this an example:

https://developers.google.com/caja/docs/callingguestcode/

s[i](event);  // *(5)*

event is tamed when listener is called, listener being a function in the 
sanitized code.
If event = [], I can not call any methods such as push:

function timerFired(event) {
    event.push(1);
      }

=> TypeError: Can't add property 0, object is not extensible

Do I need to provide special wrappers for Arrays that have marked 
methods/properties?

Essentially I want to pass a regular array back and forth between host and 
guest, that can be manipulated by either, and retains standard Array 
functionality.




-- 

--- 
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.

Reply via email to