Ignore:
Timestamp:
Oct 6, 2009, 7:06:03 PM (16 years ago)
Author:
[email protected]
Message:

It should be possible to post (clone) built-in JS objects to Workers
https://bugs.webkit.org/show_bug.cgi?id=22878

Reviewed by Gavin Barraclough.

Implement object cloning semantics for postMessage. Currently only
a partial implementation of the spec -- cloning of File, FileList,
ImageData, and RegExp were left out as they would have significantly
increased patch size.

Cloning requires multiple tree walks so we use a templated tree
walk function, allowing us to share a single implementation for
serialization, deserialization, and eventual destruction of the
serialized object tree.

Test: fast/dom/Window/window-postmessage-clone.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/DateInstance.h

    r48836 r49214  
    3232    class DateInstance : public JSWrapperObject {
    3333    public:
     34        DateInstance(ExecState*, double);
    3435        explicit DateInstance(NonNullPassRefPtr<Structure>);
    3536        virtual ~DateInstance();
Note: See TracChangeset for help on using the changeset viewer.