W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

[Bug 16457] IDL exceptions as platform objects

From: <bugzilla@jessica.w3.org>
Date: Tue, 20 Mar 2012 19:19:59 +0000
To: public-script-coord@w3.org
Message-Id: <E1SA4b9-00029L-EW@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16457

--- Comment #1 from Marcos Caceres <w3c@marcosc.com> 2012-03-20 19:19:58 UTC ---
FYI... this is my hacky checker for platform objects:

//check platform object
if(ECMAScript.Type(O) === "Function"){
   var name = O.name; 
   var nativeString = "function " + name + "() { [native code] }";  
   if(O.toString() === nativeString){
       classType = "platform object"; 
        return classType; 
   }
 }

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 20 March 2012 19:20:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC