-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BROWSER vs NODE differences #63
Comments
It should be still jDataView, just the name is minified. Do you have any difference in actual behaviour? |
Yes, that's the problem. NODE version works perfectly but when switching to BROWSER does not. Note that when I say BROWSER I am still using electron only switching to js file version instead node module, It is supposed to work the same Isn't it? Here is what i have found going deeper into JBinary Object. Same piece of code, expanding 'view'
NODE VERSION -->
Note-> buffer: Buffer[2048] BROWSER VERSION ->
Note-> buffer: ArrayBuffer Any idea? Why does 'buffer' type is also different? |
Well But, as you can see, it's still jDataView in both cases, so all the public APIs should still work. |
Hi,
I'm trying to port a working app from electron (node based) to cordova. This app makes intesive usage of jBinary and works really fine on electron.
What i found is that BROWSER version does not generate the same jBinary::view type as when using NODE version. For the the same code;
NODE version ->
var jBinary = require('jbinary'); is generating view as 'jDataView'
BROWSER version ->
<script type="text/javascript" src="js/jdataview.js"></script>
<script type="text/javascript" src="js/jbinary.js"></script> is generating view as 'e'
How do can I get the same result as in NODE using BROWSER?
Or maybe there is a better way to use it on cordova?
Thanks.
The text was updated successfully, but these errors were encountered: