Re: Standardizing console APIs: Where?

On 27/02/2013 21:47 , François REMY wrote:
>> The script engine does not relate to clicking on things -- that
>> happens in a browser. So do you feel that script engines must ship
>> with a console? Or does that apply to web browsers? And if so,
>> why?
>
> As Brian said, the UI itself should not be defined in the spec.
> However, I feel like the object-to-string behavior should be
> standardized so that any JS engine could be used reliably in a
> command-line environment (ie console.log outputs the same string in
> the console in all browsers/engines).

I don't think that makes sense. The Console API should just be an API 
for sending data to a console of some form. Whatever happens there is 
entirely up to the implementation. And we definitely shouldn't assume 
that it's limited to text.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Received on Thursday, 28 February 2013 09:10:51 UTC