Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27978
| From | Andreas Bergmaier <andber93@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Style: new String( "abc" ) |
| Date | 2015-06-03 18:36 +0200 |
| Organization | albasani.net |
| Message-ID | <mknaer$lmu$1@news.albasani.net> (permalink) |
| References | (2 earlier) <2130550.8QLrkFYiEJ@PointedEars.de> <mkl8h8$17b$1@news.albasani.net> <6829198.rnUjZSozy1@PointedEars.de> <mklvde$db3$1@news.albasani.net> <1962100.Vu9JShqaFp@PointedEars.de> |
Thomas 'PointedEars' Lahn schrieb: > [snip] > V8 is what can be called a “current script engine”. So it contains a > “current compiler”. But that compiler *does* parse string primitives into > (v8::String) objects. > > Therefore, _not_ *all* “current compilers do not convert anything to an > object any more there.” Maybe it would have been clearer if they had named their "String" class "PrimitiveString". Then we'd have v8::PrimitiveString objects, if that makes sense to you :-) They're JavaScript primitive values represented as C++ objects. Which has nothing to do with JS type conversions, it's just the native implementation. The point that Fabrício makes is that there are no JS String wrapper objects, which would be represented by v8::StringObject objects wrapping v8::"PrimitiveString" objects, created when a property on a JS primitive is accessed. (And neither are there new v8::"PrimitiveString" objects created, they were created by the parser at compile time) Bergi
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Style: new String( "abc" ) Andreas Bergmaier <andber93@web.de> - 2015-06-02 21:25 +0200
Re: Style: new String( "abc" ) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-02 22:27 +0200
Re: Style: new String( "abc" ) Andreas Bergmaier <andber93@web.de> - 2015-06-02 23:51 +0200
Re: Style: new String( "abc" ) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-03 01:17 +0200
Re: Style: new String( "abc" ) Andreas Bergmaier <andber93@web.de> - 2015-06-03 06:22 +0200
Re: Style: new String( "abc" ) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-03 07:57 +0200
Re: Style: new String( "abc" ) Andreas Bergmaier <andber93@web.de> - 2015-06-03 18:36 +0200
Re: Style: new String( "abc" ) John Harris <niam@jghnorth.org.uk.invalid> - 2015-06-03 15:38 +0100
csiph-web