mirror of https://github.com/lukechilds/node.git
Browse Source
PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>v6
605 changed files with 1573 additions and 1552 deletions
@ -1,6 +1,6 @@ |
|||
'use strict'; |
|||
const common = require('../../common'); |
|||
var assert = require('assert'); |
|||
const assert = require('assert'); |
|||
const binding = require(`./build/${common.buildType}/binding`); |
|||
assert.strictEqual(binding(), 'world'); |
|||
console.log('binding.hello() =', binding()); |
|||
|
@ -1,6 +1,6 @@ |
|||
'use strict'; |
|||
const common = require('../../common'); |
|||
var assert = require('assert'); |
|||
const assert = require('assert'); |
|||
const binding = require(`./build/${common.buildType}/binding`); |
|||
assert.strictEqual(binding.hello(), 'world'); |
|||
console.log('binding.hello() =', binding.hello()); |
|||
|
@ -1,4 +1,4 @@ |
|||
var mod = require('./mod.js'); |
|||
const mod = require('./mod.js'); |
|||
mod.hello(); |
|||
mod.hello(); |
|||
debugger; |
|||
|
@ -1,12 +1,12 @@ |
|||
var assert = require('assert'); |
|||
const assert = require('assert'); |
|||
|
|||
// https://github.com/nodejs/node/issues/1803
|
|||
// this module is used as a preload module. It should have a parent with the
|
|||
// module search paths initialized from the current working directory
|
|||
assert.ok(module.parent); |
|||
var expectedPaths = require('module')._nodeModulePaths(process.cwd()); |
|||
const expectedPaths = require('module')._nodeModulePaths(process.cwd()); |
|||
assert.deepEqual(module.parent.paths, expectedPaths); |
|||
|
|||
var cluster = require('cluster'); |
|||
const cluster = require('cluster'); |
|||
cluster.isMaster || process.exit(42 + cluster.worker.id); // +42 to distinguish
|
|||
// from exit(1) for other random reasons
|
|||
|
@ -1,4 +1,4 @@ |
|||
console.error(__filename); |
|||
console.error(module.paths.join('\n') + '\n'); |
|||
var assert = require('assert'); |
|||
const assert = require('assert'); |
|||
assert.equal(require('baz'), require('./baz/index.js')); |
|||
|
@ -1,4 +1,4 @@ |
|||
var assert = require('assert'); |
|||
const assert = require('assert'); |
|||
assert.notEqual(module, require.main, 'require.main should not == module'); |
|||
assert.notEqual(module, process.mainModule, |
|||
'process.mainModule should not === module'); |
|||
|
@ -1,4 +1,4 @@ |
|||
// Tests resolving a path in the context of a spawned process.
|
|||
// See https://github.com/nodejs/node/issues/7215
|
|||
var path = require('path'); |
|||
const path = require('path'); |
|||
console.log(path.resolve(process.argv[2])); |
|||
|
@ -1,5 +1,5 @@ |
|||
'use strict'; |
|||
var common = require('../common'); |
|||
var child_process = require('child_process'); |
|||
const common = require('../common'); |
|||
const child_process = require('child_process'); |
|||
|
|||
child_process.fork(common.fixturesDir + '/empty.js'); // should not hang
|
|||
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue