mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
468 B
16 lines
468 B
8 years ago
|
'use strict';
|
||
|
|
||
|
const common = require('../../common');
|
||
|
|
||
|
// Verify that the path argument to node::ErrnoException() can contain UTF-8
|
||
|
// characters.
|
||
|
|
||
|
const assert = require('assert');
|
||
|
const binding = require(`./build/${common.buildType}/binding`);
|
||
|
const err = binding.errno();
|
||
|
|
||
|
assert.strictEqual(err.syscall, 'syscall');
|
||
|
assert.strictEqual(err.errno, 10);
|
||
|
assert.strictEqual(err.path, 'päth');
|
||
|
assert.ok(/^Error:\s\w+, some error msg 'päth'$/.test(err.toString()));
|