--- /dev/null
+process.on('message', function (msg) {
+ process.send([
+ 'a'.localeCompare('a'),
+ 'ä'.localeCompare('z', 'de'),
+ 'ä'.localeCompare('a', 'sv', { sensitivity: 'base' }),
+ ]);
+});
done()
child.send 'message'
+ it 'has String::localeCompare working in script', (done) ->
+ child = child_process.fork path.join(fixtures, 'module', 'locale-compare.js')
+ child.on 'message', (msg) ->
+ assert.deepEqual msg, [0, -1, 1]
+ done()
+ child.send 'message'
+
describe 'contexts', ->
describe 'setTimeout in fs callback', ->
it 'does not crash', (done) ->