Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E269ED42A for ; Thu, 6 Dec 2012 19:38:04 +0000 (UTC) Received: (qmail 1822 invoked by uid 500); 6 Dec 2012 19:38:04 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 1754 invoked by uid 500); 6 Dec 2012 19:38:04 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 1746 invoked by uid 99); 6 Dec 2012 19:38:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 19:38:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 207.97.245.131 is neither permitted nor denied by domain of CaptainN@unfocus.com) Received: from [207.97.245.131] (HELO smtp131.iad.emailsrvr.com) (207.97.245.131) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 19:37:57 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp23.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 5A6CF34A3DE for ; Thu, 6 Dec 2012 14:37:36 -0500 (EST) X-Virus-Scanned: OK Received: by smtp23.relay.iad1a.emailsrvr.com (Authenticated sender: captainn-AT-unfocus.com) with ESMTPSA id 3CE7E34A3E2 for ; Thu, 6 Dec 2012 14:37:36 -0500 (EST) Message-ID: <50C0F3FF.6060109@unFocus.com> Date: Thu, 06 Dec 2012 14:37:35 -0500 From: Kevin Newman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: flex-dev@incubator.apache.org Subject: Re: ABC -> JS References: <50BFBB17.6020603@gmail.com> <50BFCD06.2010808@unFocus.com> <50C0BE9F.3020908@unFocus.com> <50C0C25E.60109@unFocus.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 12/6/12 1:57 PM, Frank Wienberg wrote: > I like that idea. But still not all polyfills simulate the intended > semantics 100%. The question remains that when we know certain semantics > can't be done in a certain browser (like get / set on non-DOM-objects in > IE8), should we refrain from using it and risk bad performance in all > browsers? Yeah I dug around a bit more after posting that, and it looks like indeed you can't emulate get/set in any 100% way (a path through VBScript comes close, but it has many other more important draw backs). The enumeration props can be set in IE8 and lower through a shim, but like you said, they don't do anything (they are still enumerable, etc.). Bummer. The only realistic way to do it then would be the way MS handles it in TypeScript, where they have essentially an opt-in solution through a compile switch, and will output to either ES3 or ES5. Presumably, they'll add ES6 when it's ready. Perhaps use the current Jangaroo solution for ES3 compile target, and a new solution for ES5. On a tangent, what kind of problems would basing every AS3 class off a DOM Element in IE8 cause? (memory explosion and other performance problems?) Kevin N.