dslomov / ecmascript-structured-clone

18 stars 0 forks source link

"DataCloneError" #1

Closed annevk closed 8 years ago

annevk commented 11 years ago

Note that HTML uses DOMException whose name is "DataCloneError", not a DataCloneError object. You don't think we can change that?

dslomov commented 11 years ago

Rats. You are right. I do not know. Looks like quite a breaking change to me. Ideas?

annevk commented 11 years ago

Well, we have changed things like this in the past for DOM. It's usually fine, but we'd have to test. @arv can prolly help out.

dslomov commented 11 years ago

Hmm, I think we should not break the web just because we want to move a couple of specs around the standardization organizations ;)

Since the algorithm is not exposed to the language in any way, what do you think about one of:

annevk commented 11 years ago

I suppose. The DOMException story is rather messy and not very stable, but either of those works for me too. The second one seems more stable long term. @allenwb, want to weigh in here?

arv commented 11 years ago

The DOMException story is rather messy and not very stable

No two browsers agree on these and as long as we keep the name and possibly code properties stable I believe we can change a lot of things here.

annevk commented 8 years ago

Changing this would be too high risk.