Re: ISSUE-73: Are we going to support non-ECMAScript languages?

On Thu, 6 Apr 2006, Maciej Stachowiak wrote:
> 
> Here's a possibly too cute solution that would make things language- 
> independent but add nothing new for JavaScript:
> 
> interface WindowXMLHttpRequest {
>     XMLHttpRequest XMLHttpRequest();
> }
> 
> In other words, require a function on the global object named 
> XMLHttpRequest which makes a new instance for you.
> 
> And for JavaScript allow it to be used as a constructor too.
> 
> In fact this fairly accurately describes what current implementations 
> already do.

Worksforme.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 7 April 2006 01:56:43 UTC