W3C home > Mailing lists > Public > public-web-security@w3.org > November 2012

Re: CSP 1.1 DOM design

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 05 Nov 2012 09:56:14 -0500
Message-ID: <5097D38E.3040301@mit.edu>
To: David Bruant <bruant.d@gmail.com>
CC: Alex Russell <slightlyoff@google.com>, public-web-security@w3.org
On 11/5/12 9:42 AM, David Bruant wrote:
> About this point, it seems that the class string of IDL Arrays is
> "Array" which is the same than ECMAScript arrays.

We're way off topic now, but the spec I'm reading says:

   The class string of a platform array object MUST be the type name
   of the array type.  (WebIDL section 4.2.25)

   The type name of an array type is the concatenation of the type name
   for T and the string “Array”.   (WebIDL section 3.10.24)

So Object.prototype.toString called on a long[] would return "LongArray" 
for example.

Received on Monday, 5 November 2012 14:56:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:20 UTC