Path: csiph.com!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.116.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Object.create(canvas.getContext()) Date: Wed, 22 Nov 2017 04:12:55 +0100 Organization: PointedEars Software (PES) Lines: 29 Message-ID: <1928114.irdbgypaU6@PointedEars.de> References: <5326256.lOV4Wx5bFT@PointedEars.de> <1754058.usQuhbGJ8B@PointedEars.de> <10957516.O9o76ZdvQC@PointedEars.de> <4026723.LvFx2qVVIh@PointedEars.de> <2052703.ElGaqSPkdT@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Info: gwaiyur.mb-net.net; posting-host="116.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch:178.197.234.116"; logging-data="24078"; mail-complaints-to="abuse@open-news-network.org" User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. Thomas 'PointedEars' Lahn: >> Jan Bruns wrote: >>> But we're talking about a very popular API, meaning there are thousands >>> or maybe even a million programmers out there that tried out or will >>> try out working with it. > >> The generally recommended approach is the one that I recommended to you >> initially: create a wrapper for the host object. Obtaining, and >> operating on, the keys of the object is just one of the more convenient >> implementations of that approach. > > Your approach was to use the API's prototype to ask for valid API keys. > Noone can tell if that's a host object anywhere. This is why in iteration try-catch should be used, too. > The API itself could be a host object, too, and isn't required to have a > prototype object (so I can't expected it to list all the API methods). Sadly, you have no clue what you are talking about. > [further misconceptions] -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.