Closed iliakan closed 8 years ago
Could you please say a word if that is an easy thing and gets fixed soon, or no? Just to know. Using xmpp-client, can't upgrade.
Thank you.
Also doesn't work for the new Node.js 4.0.0, which is a merge of io.js and Node.js.
I can report a broken test for node 0.12
Running "mochacli:all" (mochacli) task child_process: customFds option is deprecated, use stdio instead.
1) Should not leak 2) Should convert to ASCII ✓ Should throw on error 3) Should convert unassigned code point ✓ Should error on non-STD3 char 4) Should convert to Unicode 5) Should convert unassigned code point Should use JS fallbacks for StringPrep ✓ Should throw on unknown icu-profile ✓ Should perform a 'nameprep' ✓ Should perform a 'nodeprep' ✓ Should preform a 'resourceprep' ✓ Can't handle other profiles
Can disable fallbacks ✓ Should allow javascript fallbacks to be disabled ✓ Should allow javascript fallbacks to be re-enabled
'isNative' method test 6) Reports true with native ✓ Reports false without native
10 passing (19ms) 6 failing
1) Should not leak:
actual expected
ääffin
at Object.Assertion.equal (/Users/sebs/projects/node-stringprep/node_modules/should/lib/should.js:389:10)
at Context.<anonymous> (/Users/sebs/projects/node-stringprep/test/leakcheck.js:12:23)
at Test.Runnable.run (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runnable.js:194:15)
at Runner.runTest (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:358:10)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:404:12
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:284:14)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:293:7
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:237:23)
at Immediate._onImmediate (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:261:5)
at processImmediate [as _immediateCallback] (timers.js:358:17)
2) Should convert to ASCII:
actual expected
xn--iu-t0xi♥u
at Object.Assertion.equal (/Users/sebs/projects/node-stringprep/node_modules/should/lib/should.js:389:10)
at Context.<anonymous> (/Users/sebs/projects/node-stringprep/test/toascii.js:10:19)
at Test.Runnable.run (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runnable.js:194:15)
at Runner.runTest (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:358:10)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:404:12
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:284:14)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:293:7
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:237:23)
at Immediate._onImmediate (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:261:5)
at processImmediate [as _immediateCallback] (timers.js:358:17)
3) Should convert unassigned code point:
actual expected
xn--h28h😃
at Object.Assertion.equal (/Users/sebs/projects/node-stringprep/node_modules/should/lib/should.js:389:10)
at Context.<anonymous> (/Users/sebs/projects/node-stringprep/test/toascii.js:26:16)
at Test.Runnable.run (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runnable.js:194:15)
at Runner.runTest (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:358:10)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:404:12
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:284:14)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:293:7
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:237:23)
at Immediate._onImmediate (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:261:5)
at processImmediate [as _immediateCallback] (timers.js:358:17)
4) Should convert to Unicode:
actual expected
i♥uxn--iu-t0x
at Object.Assertion.equal (/Users/sebs/projects/node-stringprep/node_modules/should/lib/should.js:389:10)
at Context.<anonymous> (/Users/sebs/projects/node-stringprep/test/tounicode.js:10:19)
at Test.Runnable.run (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runnable.js:194:15)
at Runner.runTest (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:358:10)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:404:12
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:284:14)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:293:7
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:237:23)
at Immediate._onImmediate (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:261:5)
at processImmediate [as _immediateCallback] (timers.js:358:17)
5) Should convert unassigned code point:
actual expected
😃xn--h28h
at Object.Assertion.equal (/Users/sebs/projects/node-stringprep/node_modules/should/lib/should.js:389:10)
at Context.<anonymous> (/Users/sebs/projects/node-stringprep/test/tounicode.js:19:16)
at Test.Runnable.run (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runnable.js:194:15)
at Runner.runTest (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:358:10)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:404:12
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:284:14)
at /Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:293:7
at next (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:237:23)
at Immediate._onImmediate (/Users/sebs/projects/node-stringprep/node_modules/grunt-mocha-cli/node_modules/mocha/lib/runner.js:261:5)
at processImmediate [as _immediateCallback] (timers.js:358:17)
6) 'isNative' method test Reports true with native:
AssertionError: expected false to be true
at Object.true (/Users/sebs/projects/node-stringprep/node_modules/should/lib/should.js:312:10)
at Context.
Same for node.js 4.0+
I started https://github.com/node-xmpp/node-stringprep/pull/72 but could use some help
ugh I'd like to, if that's not developing for nan
that I didn't do yet.
:+1:
Also failing for me in node v4.1.1 ( node-gyp v3.0.3 ).
Is there anything I could maybe do to help? This is a required library for the hubot hipchat adapter, and I'd like to set up a bot for my company soon.
Tried to install it for the recent io.js - fails.
Modifying
nan
in package.json to latest didn't help. Providing the log.