Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16929
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Cezary Tomczyk <cezary.tomczyk@gmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Built-in native method |
| Date | Sun, 28 Oct 2012 19:22:23 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 61 |
| Message-ID | <k6jt59$uht$1@speranza.aioe.org> (permalink) |
| References | <k5sbuj$bt8$1@speranza.aioe.org> <67583587.7BbXikoxoM@PointedEars.de> <k69jek$r9i$1@speranza.aioe.org> <3102322.j8kCu7WbkW@PointedEars.de> <k6jgm5$snj$1@speranza.aioe.org> <8635315.16DEVHx3j1@PointedEars.de> <k6jnnq$fro$1@speranza.aioe.org> <1983193.7UhRnYkZ6n@PointedEars.de> |
| NNTP-Posting-Host | RMrsF+s1qSnxq5Qkkqjnpw.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.javascript:16929 |
Show key headers only | View raw
W dniu 2012-10-28 18:07, Thomas 'PointedEars' Lahn pisze:
> Cezary Tomczyk wrote:
>
>> W dniu 2012-10-28 17:12, Thomas 'PointedEars' Lahn pisze:
>>> Cezary Tomczyk wrote:
>>>> W dniu 2012-10-25 00:03, Thomas 'PointedEars' Lahn pisze:
>>>> [...]
>>>>> if (String.prototype.propertyIsEnumerable("trim"))
>>>> Quick results from Google Chrome 22.0.1229.94 console.
>>> Unreadable. What is your input, what V8's output? Which OS and
>>> platform?
>>
>> OS: Windows 7
>> Platform: Win32
>
> I would consider "Windows 7 32-bit" the OS then and "Intel x86 or
> compatibles" the (hardware) platform, but I know what you mean.
Argh, my mistake. I've got platform from browser
window.navigator.platform which is not really true. I have a Windows 7
64-bit and "Intel x86 or compatibles".
>> Let me do in that way:
>>
>> ID - Input data in Google Chrome console
>> R - result in console
>>
>> ID: String.prototype.propertyIsEnumerable("trim")
>> R: false
>>
>> ID: String(String.prototype.trim);
>> R: "function trim() { [native code] }"
>>
>> ID: String.prototype.trim = function(){ alert('test'); return false; };
>> R: function (){ alert('test'); return false; }
>>
>> ID: String.prototype.trim
>> R: function (){ alert('test'); return false; }
>>
>> ID: String(String.prototype.trim);
>> R: "function (){ alert('test'); return false; }"
>
> JFYI: In the Chromium/Chrome console a type conversion to String so far is
> implicit for Function instances.
A, there is no differences when I type in console:
String(String.prototype.trim);
and
String.prototype.trim
because they are always converted to string. Right?
[...]I should set
> up a test case as part of the ES Matrix.
When will be free time :-)
--
Cezary Tomczyk
http://www.ctomczyk.pl/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-19 22:07 +0200
Re: Built-in native method JJ <jaejunks_at@_googlemail_dot._com> - 2012-10-21 06:44 +0000
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-21 18:46 +0200
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-21 19:37 +0200
Re: Built-in native method Andreas Bergmaier <andber93@web.de> - 2012-10-22 15:47 +0200
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-22 18:00 +0200
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-24 02:17 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-24 22:17 +0200
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-25 00:32 +0200
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-24 02:15 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-24 22:35 +0200
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-25 00:03 +0200
Re: Built-in native method Asen Bozhilov <asen.bozhilov@gmail.com> - 2012-10-26 03:58 -0700
Re: Built-in native method RobG <rgqld@iinet.net.au> - 2012-10-29 16:39 -0700
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 15:32 +0100
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-28 17:05 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 18:39 +0100
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-28 20:10 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 20:23 +0100
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-28 21:23 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 22:03 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 15:49 +0100
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-28 17:12 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 17:49 +0100
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-28 18:07 +0100
Re: Built-in native method Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 19:22 +0100
Re: Built-in native method Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-28 19:53 +0100
csiph-web