https://bugzilla.wikimedia.org/show_bug.cgi?id=52592
Web browser: --- Bug ID: 52592 Summary: mw.clone causes script error when used on a table returned from mw.loadData Product: MediaWiki extensions Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Scribunto Assignee: wikibugs-l@lists.wikimedia.org Reporter: codeca...@gmail.com CC: bjor...@wikimedia.org, tstarl...@wikimedia.org, vasi...@gmail.com Classification: Unclassified Mobile Platform: --- The function mw.clone is meant to create a deep copy of a value. mw.loadData returns read-only tables, so a deep copy is necessary to modify a table returned from mw.loadData. However, when an attempt is made to clone such a table, a script error occurs: table from mw.loadData is read-only This is obviously not the intended behaviour and it prevents one of the main uses of mw.clone. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l