New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
structuredClone
#984
structuredClone
#984
Commits on Dec 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d220907 - Browse repository at this point
Copy the full SHA d220907View commit details -
add cloning of primitives, wrappers, Date, RegExp, Map, Set
Actually we should be checking the existance of internal slots, and toString comes close, but @@toStringTag can be overriden.
Configuration menu - View commit details
-
Copy full SHA for ebc8a32 - Browse repository at this point
Copy the full SHA ebc8a32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb20f1 - Browse repository at this point
Copy the full SHA 3bb20f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d807b2e - Browse repository at this point
Copy the full SHA d807b2eView commit details -
export structuredCloneInternal directly
If transfer behaviour is not replicatable, we don't need wrapping function at all.
Configuration menu - View commit details
-
Copy full SHA for 235e6f7 - Browse repository at this point
Copy the full SHA 235e6f7View commit details -
refactor structuredCloneInternal using classof
fixed infinite recursion
Configuration menu - View commit details
-
Copy full SHA for 5d7c03c - Browse repository at this point
Copy the full SHA 5d7c03cView commit details -
this conforms to the spec more closely, and it also copies non-indexed key as well
Configuration menu - View commit details
-
Copy full SHA for 25476cc - Browse repository at this point
Copy the full SHA 25476ccView commit details -
copied from web-platform-tests with adjustments to work with QUnit.
Configuration menu - View commit details
-
Copy full SHA for 8fae5ef - Browse repository at this point
Copy the full SHA 8fae5efView commit details -
I'm not 100% sure stack cloning would work everywhere, but it seems to work on Firefox and Chrome and Node.js.
Configuration menu - View commit details
-
Copy full SHA for 3c5342a - Browse repository at this point
Copy the full SHA 3c5342aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ebccea - Browse repository at this point
Copy the full SHA 0ebcceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14b3a78 - Browse repository at this point
Copy the full SHA 14b3a78View commit details -
implement SharedArrayBuffer cloning
CAVEATS: this will *not* shrare memory as you might expect for strucutred cloning.
Configuration menu - View commit details
-
Copy full SHA for 3cb770d - Browse repository at this point
Copy the full SHA 3cb770dView commit details -
although the type is different the interface is more or less the same.
Configuration menu - View commit details
-
Copy full SHA for 5381fac - Browse repository at this point
Copy the full SHA 5381facView commit details -
Configuration menu - View commit details
-
Copy full SHA for 50a1827 - Browse repository at this point
Copy the full SHA 50a1827View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40eccb7 - Browse repository at this point
Copy the full SHA 40eccb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for da59491 - Browse repository at this point
Copy the full SHA da59491View commit details -
since the map itself does not live longer then the function, it is ok
Configuration menu - View commit details
-
Copy full SHA for 071ffae - Browse repository at this point
Copy the full SHA 071ffaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6d0a27 - Browse repository at this point
Copy the full SHA e6d0a27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5800aea - Browse repository at this point
Copy the full SHA 5800aeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for e149ca8 - Browse repository at this point
Copy the full SHA e149ca8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34b6f80 - Browse repository at this point
Copy the full SHA 34b6f80View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae44dee - Browse repository at this point
Copy the full SHA ae44deeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8977c69 - Browse repository at this point
Copy the full SHA 8977c69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9284911 - Browse repository at this point
Copy the full SHA 9284911View commit details -
Configuration menu - View commit details
-
Copy full SHA for 300491e - Browse repository at this point
Copy the full SHA 300491eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53d7619 - Browse repository at this point
Copy the full SHA 53d7619View commit details -
forced usage of polyfill in the pure version since native `structured…
…Clone` can't work with wrapped `Map` / `Set`
Configuration menu - View commit details
-
Copy full SHA for 4707b73 - Browse repository at this point
Copy the full SHA 4707b73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2040a05 - Browse repository at this point
Copy the full SHA 2040a05View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbaddce - Browse repository at this point
Copy the full SHA bbaddceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b81767 - Browse repository at this point
Copy the full SHA 1b81767View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4bb633 - Browse repository at this point
Copy the full SHA f4bb633View commit details -
Configuration menu - View commit details
-
Copy full SHA for fddef17 - Browse repository at this point
Copy the full SHA fddef17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1675881 - Browse repository at this point
Copy the full SHA 1675881View commit details -
Configuration menu - View commit details
-
Copy full SHA for 104a7b5 - Browse repository at this point
Copy the full SHA 104a7b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48981fd - Browse repository at this point
Copy the full SHA 48981fdView commit details -
use constructors as fallbacks for some geometry types to make them cl…
…oneable in FF31-68
Configuration menu - View commit details
-
Copy full SHA for fc14c99 - Browse repository at this point
Copy the full SHA fc14c99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44ae9b1 - Browse repository at this point
Copy the full SHA 44ae9b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb03549 - Browse repository at this point
Copy the full SHA eb03549View commit details -
Configuration menu - View commit details
-
Copy full SHA for d354dd3 - Browse repository at this point
Copy the full SHA d354dd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92755dc - Browse repository at this point
Copy the full SHA 92755dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5341988 - Browse repository at this point
Copy the full SHA 5341988View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68e1f60 - Browse repository at this point
Copy the full SHA 68e1f60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 488c1fe - Browse repository at this point
Copy the full SHA 488c1feView commit details -
use
nativeRestrictedStructuredClone
where it's possible, throw `Dat……aCloneError` where it's required
Configuration menu - View commit details
-
Copy full SHA for e46a9ea - Browse repository at this point
Copy the full SHA e46a9eaView commit details -
it's not defined in the spec, but seems it should work similarly to `.stack` and it works in Chrome
Configuration menu - View commit details
-
Copy full SHA for 166cc3f - Browse repository at this point
Copy the full SHA 166cc3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a84f77 - Browse repository at this point
Copy the full SHA 0a84f77View commit details -
Configuration menu - View commit details
-
Copy full SHA for f64a562 - Browse repository at this point
Copy the full SHA f64a562View commit details -
Configuration menu - View commit details
-
Copy full SHA for 904ede6 - Browse repository at this point
Copy the full SHA 904ede6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7beae95 - Browse repository at this point
Copy the full SHA 7beae95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d170d8 - Browse repository at this point
Copy the full SHA 5d170d8View commit details -
handle a case with existent native structuredClone, structuredCloneFr…
…omMark and transfer
Configuration menu - View commit details
-
Copy full SHA for a14201d - Browse repository at this point
Copy the full SHA a14201dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b925e5a - Browse repository at this point
Copy the full SHA b925e5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 017a374 - Browse repository at this point
Copy the full SHA 017a374View commit details -
Configuration menu - View commit details
-
Copy full SHA for 047e8ac - Browse repository at this point
Copy the full SHA 047e8acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00f0d0c - Browse repository at this point
Copy the full SHA 00f0d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c32695 - Browse repository at this point
Copy the full SHA 4c32695View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fdfd14 - Browse repository at this point
Copy the full SHA 1fdfd14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fbedfb - Browse repository at this point
Copy the full SHA 9fbedfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31d5712 - Browse repository at this point
Copy the full SHA 31d5712View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95663bf - Browse repository at this point
Copy the full SHA 95663bfView commit details -
Update packages/core-js/modules/web.structured-clone.js
Co-authored-by: Kenta Moriuchi <moriken@kimamass.com>
Configuration menu - View commit details
-
Copy full SHA for be7be95 - Browse repository at this point
Copy the full SHA be7be95View commit details -
drop
USE_STRUCTURED_CLONE_FROM_MARK
fast casenative `structuredClone` is already available in unstable versions of all modern engines, but no one of them still not passes new (related to html/5749) errors cloning tests
Configuration menu - View commit details
-
Copy full SHA for bba0457 - Browse repository at this point
Copy the full SHA bba0457View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9f74db - Browse repository at this point
Copy the full SHA e9f74dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f80540d - Browse repository at this point
Copy the full SHA f80540dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fbece8 - Browse repository at this point
Copy the full SHA 2fbece8View commit details -
native NodeJS
structuredClone
throws aTypeError
on transferable ……non-serializable instead of `DOMException`
Configuration menu - View commit details
-
Copy full SHA for a9298a7 - Browse repository at this point
Copy the full SHA a9298a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5826451 - Browse repository at this point
Copy the full SHA 5826451View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6475af3 - Browse repository at this point
Copy the full SHA 6475af3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 205a8b6 - Browse repository at this point
Copy the full SHA 205a8b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6414360 - Browse repository at this point
Copy the full SHA 6414360View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64be468 - Browse repository at this point
Copy the full SHA 64be468View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27182a3 - Browse repository at this point
Copy the full SHA 27182a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0d475e - Browse repository at this point
Copy the full SHA e0d475eView commit details