https://bugzilla.wikimedia.org/show_bug.cgi?id=48393

--- Comment #3 from [email protected] ---
Thanks for the explanation. I didn't realize that enwiki was running
LuaSandbox. (I'll download and build this later for my own machines.) For now,
I follow your logic well enough to understand why this occurs / is difficult to
fix. I also appreciate your check-in to make Standalone and Sandbox behave the
same. It was quite confusing looking at two different behaviors.

One other question: I know you said this was silently broken in LuaSandbox, but
shouldn't enwiki return incorrect data for the MTQ invocation? I tried the
below on enwiki's sandbox, and MTQ is returning the same values as FRA. It
almost appears as if the MTQ assignment works and the FRA object reference was
cloned properly to it (i.e.: "colors.MTQ = FRA".)

<!-- as per the module, both FRA and MTQ are the same for type A -->
<pre>FRA:addTypesAsColor({"A"}, "background:#0079C1; color:#fff;")</pre>
{{#invoke:Infobox road/color|color|country=FRA|type=A}}<br/>
{{#invoke:Infobox road/color|color|country=MTQ|type=A}}<br/>

<!-- as per the module, both FRA and MTQ are the same for type N -->
<pre>FRA:addTypesAsColor({"N"}, "background:#006A4D; color:#fff;")</pre>
{{#invoke:Infobox road/color|color|country=FRA|type=N}}<br/>
{{#invoke:Infobox road/color|color|country=MTQ|type=N}}<br/>

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to