mediawiki-extensions-AbuseF.../tests/parserTests/builtin-array.t
Daimona Eaytoy 517919fca8 Allow accessing offsets of built-in variables
I5ec4ab44c4e88aaf18c0d7b73355d27050beeda7 almost fixed this bug, but we
also have to make it possible to access builtin variables as arrays.
This will only make sense for a few variables (e.g. added_lines and
removed_lines), but I don't think we should validate it when checking
syntax.

Bug: T198531
Change-Id: I417e1b8d4802bbfccd091ce5c7617659cfd1e4ea
2019-08-04 17:14:44 +00:00

4 lines
189 B
Perl

removed_lines[1] == 2 |
added_lines[0] contains 'x' |
new_wikitext[1] !== 'xxx' | /* This will fail at runtime, but should pass the syntax check */
true /* Needed to make this code match */