cloudtrends / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
1 stars 1 forks source link

Add support for int64 & Date V8 value type #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I think there is a missed functions to handle 64bits value,
or the Integer data type should be 64 bits.

Original issue reported on code.google.com by hgourv...@gmail.com on 20 Feb 2011 at 11:51

GoogleCodeExporter commented 9 years ago
There are int64 and uint64 types defined in cef_types.h. Is there a particular 
place you think they should be used where they aren't being used currently? 
Keep in mind that CEF and Chromium only support 32bit build targets on Windows.

Original comment by magreenb...@gmail.com on 21 Feb 2011 at 12:40

GoogleCodeExporter commented 9 years ago
1) in the cef_v8value_t structure, the get_int_value method.
2) cef_v8value_create_int

for example in the js "Date" class, the getTime() function return an int64 
value.

Original comment by hgourv...@gmail.com on 21 Feb 2011 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 23 Feb 2011 at 5:57

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 23 May 2011 at 2:05

GoogleCodeExporter commented 9 years ago
Note that int64 values are not supported by ECMAScript and that double is used 
internally by V8 instead. See http://code.google.com/p/v8/issues/detail?id=973 
for more information.

Original comment by magreenb...@gmail.com on 23 May 2011 at 2:43

GoogleCodeExporter commented 9 years ago
Revision 242 adds Date type support to CefV8Value. The CefV8Value::GetDate() 
method returns a CefTime representation of the Date value. If you still want to 
call Date.getTime() directly you can retrieve the value as a double, convert 
from milliseconds to seconds and pass the value to cef_time_from_doublet().

Original comment by magreenb...@gmail.com on 23 May 2011 at 5:48

GoogleCodeExporter commented 9 years ago
thank you very much

Original comment by hgourv...@gmail.com on 23 May 2011 at 9:13