Skip to content

Commit f61c247

Browse files
SimonSapinmoz-wptsync-bot
authored andcommitted
Bug 2036804 [wpt PR 59538] - script: Fix "RefCell already borrowed" for DOMString in DataTransfer.getData, a=testonly
Automatic update from web-platform-tests Fix "RefCell already borrowed" for DOMString in DataTransfer.getData `match_domstring_ascii!` presumably borrows that RefCell, and `.clone()` borrows it again. This fix uses uncommon Rust syntax: breaking with a "return" value out of a labelled block: https://rust-lang.github.io/rfcs/2046-label-break-value.html Fixes: servo/servo#44599 Signed-off-by: Simon Sapin <simon@igalia.com> -- wpt-commits: a6fd8974d9c3dc64d2b60f374ae4fb13210de993 wpt-pr: 59538
1 parent 8441bdb commit f61c247

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://github.com/servo/servo/issues/44599">
3+
<script>(new DataTransfer()).getData("");</script>

0 commit comments

Comments
 (0)