for 1 level deep? yes, but they might still access variables / crawl prototype chain and mutate the origin realm
-
-
-
(obj_from_other_realm).toString.constructor("console.log('awwww yea')")
- 7 more replies
New conversation -
-
-
In Javascript? In browsers? I'm sure it's completely immutable and totally secure, I wouldn't worry about it.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
what's cooler than freeze? deepFreeze! https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
it seems to be http://stackoverflow.com/a/19293418
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
last time I checked it was secure/freeze enough
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
if you recursively freeze all properties on that object I would say yes.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I'd just stringify and send. Use a marshalling format if necessary. Objects are unsafe by default.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 