hi hello, my name is lorrylockie, from China
Have been concerned about the the "caja project" a long time, recently, I
encountered a problem about caja
I want to achieve a function,exposed to caja sandbox, but a Date object
can't to be transmit
e.g
frame.contentCajoled('', cajoledJS).run(S.mix({
alert: frameGroup.markFunction(function(str){
alert(str);
})
}
when str is a string, it is ok,but when str is a Date Object,
if (ttype === 'object') {
var ctor = directConstructor(t);
if (ctor === BASE_OBJECT_CONSTRUCTOR) {
f = untameCajaRecord(t);
} else {
throw new TypeError(
'Untaming of guest constructed objects unsupported: ' + t);
}
} else if (ttype === 'function') {
f = untameCajaFunction(t);
}
a error appear.
best wishes
--
---
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/groups/opt_out.