Comments (5)
Hi, the code you posted works fine for me - can you double-check it? I don't see any problems with strLevel
.
To get a better error message, change line 390 of deflate.cc to:
Local<Value> exception = Exception::TypeError(String::Concat(String::New("bad deflate kind: "), args[idx+0]->ToString()));
this may shed some light on the problem.
(P.S. are you sure you want to use DEFLATE instead of GZIP? - gzip has extra integrity checks)
from node-deflate.
I tried to do so:
Local<Value> exception = Exception::TypeError(String::Concat(String::New(strLevel), args[idx+0]->ToString()));
it returns "TypeError: deflate" instead of "TypeError: deflatedeflate"
I tried your code, it returns "TypeError: bad deflate kind: deflate"
P.S. I need DEFLATE and ZLIB, ActionScript uses them for compressing the byte array.
from node-deflate.
Hmm... confusing. As I still can't re-create the original problem, I'm going to have to ask you to send me a complete working test case that exhibits the problem, and can you send me your compiled copy of deflate-bindings.node
from the build
directory and let me know the output of gcc -v
- thanks!
from node-deflate.
Working test case: http://files.asmico.ru/get/deflate_test.js
Output:
node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: bad deflate kind: deflate at Object. (/home/kolar/node/points/deflate_test.js:2:9) at Module._compile (module.js:404:26) at Object..js (module.js:410:10) at Module.load (module.js:336:31) at Function._load (module.js:297:12) at Array. (module.js:423:10) at EventEmitter._tickCallback (node.js:126:26)
./build/default/deflate-bindings.node
: http://files.asmico.ru/get/deflate-bindings.node
gcc -v
output:
Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.5 (Debian 4.4.5-8)
from node-deflate.
I never managed to re-produce this problem, so I'm going to close the issue - anyone who has this problem is welcome to re-open it...
from node-deflate.
Related Issues (5)
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 node-deflate.