diff --git a/source b/source index 98127220d93..c148e71103d 100644 --- a/source +++ b/source @@ -3082,6 +3082,15 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
Users agents that support JavaScript must also implement the BigInt + proposal. The following terms are defined there, and used in this specification:
+ +Let deep be false.
If Type(value) is Undefined, Null, Boolean, - String, or Number, then return { [[Type]]: "primitive", [[Value]]: value }.
If Type(value) is Symbol, then throw a
"DataCloneError
" DOMException
.
Otherwise, if value has a [[BigIntData]] + internal slot, then set serialized to { [[Type]]: "BigInt", [[BigIntData]]: + value.[[BigIntData]] }.
Otherwise, if value has a [[StringData]] internal slot, then set serialized to { [[Type]]: "String", [[StringData]]: value.[[StringData]] }.
Otherwise, if serialized.[[Type]] is "BigInt", then set value to a new BigInt object in + targetRealm whose [[BigIntData]] internal slot value is + serialized.[[BigIntData]].
Otherwise, if serialized.[[Type]] is "String", then set value to a new String object in targetRealm whose [[StringData]] internal slot value is serialized.[[StringData]].