Is there any plan to update encodeURI/decodeURI in ES4?

2008-01-29 Thread Shijun He
Current spec (ES3) is not fully compliant with the latest URI spec (RFC3986). For example, some marks (such as ! * ) should be moved from unreserved category to reserved category so their percent-encoded form should not be decoded by encodeURI/encodeURIComponent function. current: encodeURI("%21")

Re: New Feature to JS 1.7

2007-10-03 Thread Shijun He
On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > B.prototype.f1= function(){ /*How call f1 from prototype A?*/} B.prototype.f1= function(){A.prototype.f1.call(this)} It's nasty, but works if f1 is from prototype of A but not from the constructor of A. Maybe every Ajax framework provi

What is "unit"?

2007-08-10 Thread Shijun He
I've read the presentation "The truth about JavaScript" by Brendan, there are some code: use unit acme.widgets "http://acme.com/widgets";; unit acme.widget { // program unit definition goes here ... } What is the "uni

Re: Question about joined function object of ECMA-262 3rd edition

2007-08-05 Thread Shijun He
Do you mean Flash 5 ActionScript implement joined function? I have downloaded flash 5, but this old software can't be installed on win xp... On 7/31/07, P T Withington <[EMAIL PROTECTED]> wrote: > Oh. Ha, ha. Now I understand a piece of code in our runtime that > did exactly that (since removed)

Re: Question about joined function object of ECMA-262 3rd edition

2007-08-05 Thread Shijun He
In my opinion, the optimisation such as closure prototype in the spidermonkey is enough and joined function optimisation is useless (and wrong). If the developer want reuse the same function object, they can write like this: function A() { ... } A.B = function (x) { return x * x; } On 8/1/07, B

Re: Question about joined function object of ECMA-262 3rd edition

2007-08-05 Thread Shijun He
I read your post again today. And I found the key point is the definition of "Equated". 13.1.1 Both uses obtained their FunctionBody from the same location in the source text of the same ECMAScript program. This source text consists of global code and any contained function codes according to the

Re: Question about joined function object of ECMA-262 3rd edition

2007-08-04 Thread Shijun He
On 7/27/07, liorean <[EMAIL PROTECTED]> wrote: > Functions with different scope may be joined, but only if the scope > difference will lead to no externally observable difference. I would like to say my opinion again: though your words is very reasonable, and I believe that may be the original mea

Re: Question about joined function object of ECMA-262 3rd edition

2007-07-27 Thread Shijun He
On 7/27/07, liorean <[EMAIL PROTECTED]> wrote: > x()===y() may return false the same way x()===x() may return false. > Functions in JavaScript may have side effects, and the same input > doesn't necessarily give the same output in cosecutive uses of the > function. No, I don't mean side effect, an

Re: Question about joined function object of ECMA-262 3rd edition

2007-07-26 Thread Shijun He
I also post the question in the google groups such as comp.lang.javascript and netscape.public.mozilla.jseng. One reponse from mozilla.dev.tech.js-engine: http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/16e22c189c9ea5f6/5383179969284d97#5383179969284d97 Jason Orendo

Re: Question about joined function object of ECMA-262 3rd edition

2007-07-26 Thread Shijun He
On 7/27/07, Neil Mix <[EMAIL PROTECTED]> wrote: > Wait, am I following this correctly in that: > > function A() { >function B() {} >return B; > } > > var x = A(); > var y = A(); > > x.foo = 1; > y.foo = 2; > > alert(x.foo + y.foo); > > would show "3" in current compliant implementat

Question about joined function object of ECMA-262 3rd edition

2007-07-26 Thread Shijun He
Hi, all: First, I'm sorry because the question is mainly about es3 not es4, but I don't know other place to get a authority answer about my question. We are talking about closure in javascript, and we have some questions about ECMA-262 3rd edition: What is joined function object(ecma-262 13.1)? T