Comments (8)
Not have any solution here but I've set a breakpoint in the send method and I can see that the parameter that is passed to that method is already a double:
from titanium-sdk.
Not have any solution here but I've set a breakpoint in the send method and I can see that the parameter that is passed to that method is already a double:
Thanks for your great support, maybe the problem occurs even then when the object attribute is set? Can you confirm that you initially see the number correctly, and that it is not the debugger doing the conversion incorrectly?
from titanium-sdk.
yes, I'm setting 12345678901
as a value (or Date.now()
).
from titanium-sdk.
yes, I'm setting
12345678901
as a value (orDate.now()
).
It seems to be Date.now() being cast to Double instead of Long then (Inside Java I suppose). But is working correctly when returned by Date.now() as toString() is doing right.
from titanium-sdk.
correct. But it's all long numbers. With to String it will be a string so it doesn't need to convert it. But I don't know at which point the conversion is
from titanium-sdk.
correct. But it's all long numbers. With to String it will be a string so it doesn't need to convert it. But I don't know at which point the conversion is
No, the Debugger is doing wrong!! :-/
It's not only send, but also the alert function called with Date.now() to rise the error!
I suppose that: If the toString conversion is done at JS level is ok, while if done at Java level is wrong!
from titanium-sdk.
I suppose that: If the toString conversion is done at JS level is ok, while if done at Java level is wrong!
I don't think it is doing a toString
in Java as it still shows it as a number (double as you can see in the debug screenshot). But still: not a long as it should be.
from titanium-sdk.
I knew that JS try to fit all the datatypes in one putting pointers and other into the NaN space, but the long should not fit into a double NaN space. So I do not know what's happening...
from titanium-sdk.
Related Issues (20)
- Android: FAB tintColor HOT 2
- iOS: add accessibilityElements to Ti.UI.View to order VoiceOver labels HOT 1
- Android: Horizontal scrolling elements do not size correctly ( LogicalDensityFactor multiplied!) HOT 1
- Android: NDK update HOT 25
- Crash with LiveView enabled on 12.3.0.RC2 HOT 3
- iOS 17 notification tone customization in app notifications prefereces
- iOS applyProperty visible=true to ImageView not working as expected
- iOS: Various "start up" issues with 12.3.0 HOT 10
- iOS: Incorrect handling of window Vertical layout !
- iOS: Crash when opening a TabGroup inside a NavigationWindow
- openPhotoGallery() restarting app on Android 9 HOT 7
- Android: add adaptive icon to the default project
- iOS: can click speed be improved?
- Replace "request" node package
- iOS forcing rotation issues on obsolescent devices
- Camera View is reduced by half when using overlay with useCameraX HOT 1
- iOS WebViewConfiguration preferences has many undocumented features HOT 6
- Android: Two unreported remote WebView non-freezing IPC techniques HOT 6
- Ti.Media.VideoPlayer could support HTTPS streaming? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titanium-sdk.