Closed Bug 659301 Opened 13 years ago Closed 11 years ago

GCLI commands should be able to have variant return types

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jwalker, Unassigned)

Details

It's valid in Javascript to do:

function(x) {
  if (x) return 42;
  else return "blah";
}

However GCLI forces return types to be interpreted in the same way because it defines a returnValue to specify the type.

Sometimes it is useful to provide the data in more than one format - see multi-part mime and the handling of clipboard data (although there could be better ways to achieve this).
Blocks: GCLI-FUTURE
Moving GCLI bugs to Developer Tools: Console. Filter on 'baked beans are off'.
Component: Developer Tools → Developer Tools: Console
Triage. Filter on PEGASUS.
Priority: -- → P3
No longer blocks: GCLI-FUTURE
New component triage. Filter on "Lobster Thermidor aux crevettes with a Mornay sauce"
Component: Developer Tools: Console → Developer Tools: Graphic Commandline and Toolbar
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.