In IE I'm launching a modal popup, creating an object within it and then passing it back to the parent that launched the modal popup. I do this by passing an baseobject to the modal popup as dialogarguments and then adding the object created to the baseobject. When I try to post this object to the server using AngularJS $http.post I get the "Can't execute code from a freed script" error. I tried cloning the object using jQuery.extend(true, {}, baseobject.newobj); but that does not help.

Please suggest how this can be achieved.