mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
We're expected to handle this situation gracefully, and certainly not by falling apart like we were. Found by Domato.
16 lines
507 B
HTML
16 lines
507 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const str = '\uD2ED\uDEA6';
|
|
let t = document.createTextNode(str);
|
|
println("Before replaceData:");
|
|
for (let i = 0; i < t.length; ++i) {
|
|
println("[" + i + "]: " + t.data.charCodeAt(i));
|
|
}
|
|
t.replaceData(0, 1, '')
|
|
println("After replaceData:");
|
|
for (let i = 0; i < t.length; ++i) {
|
|
println("[" + i + "]: " + t.data.charCodeAt(i));
|
|
}
|
|
});
|
|
</script>
|