mirror of https://github.com/lukechilds/node.git
Browse Source
This updates the bundled `node-inspect` to 1.10.6. Highlights: * `node --debug-port=1234 inspect` respects the custom port. * Test stability improvements on various platforms. Compare: https://github.com/nodejs/node-inspect/compare/v1.10.4...v1.10.6 PR-URL: https://github.com/nodejs/node/pull/11869 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>v6
Jan Krems
8 years ago
committed by
James M Snell
19 changed files with 207 additions and 71 deletions
@ -1,5 +1,4 @@ |
|||||
# node-inspect Project Governance |
# node-inspect Project Governance |
||||
|
|
||||
The node-inspect project falls under the governance of the diagnostics |
The node-inspect project is governed by the Node.js Diagnostics WG as described |
||||
working group which is documented in: |
at <https://github.com/nodejs/diagnostics/blob/master/GOVERNANCE.md>. |
||||
https://github.com/nodejs/diagnostics/blob/master/GOVERNANCE.md. |
|
||||
|
@ -1,5 +1,5 @@ |
|||||
'use strict'; |
const fourty = 40; |
||||
const { add } = require('./other'); |
const { add } = require('./other'); |
||||
|
|
||||
const sum = add(40, 2); |
const sum = add(fourty, 2); |
||||
module.exports = sum; |
module.exports = sum; |
||||
|
@ -1,4 +1,3 @@ |
|||||
'use strict'; |
|
||||
exports.add = function add(a, b) { |
exports.add = function add(a, b) { |
||||
return a + b; |
return a + b; |
||||
}; |
}; |
||||
|
@ -1,4 +1,3 @@ |
|||||
'use strict'; |
|
||||
let x = 1; |
let x = 1; |
||||
x = x + 1; |
x = x + 1; |
||||
module.exports = x; |
module.exports = x; |
||||
|
@ -0,0 +1,2 @@ |
|||||
|
'use strict'; |
||||
|
console.log('first real line'); |
@ -0,0 +1,27 @@ |
|||||
|
'use strict'; |
||||
|
const Path = require('path'); |
||||
|
|
||||
|
const { test } = require('tap'); |
||||
|
|
||||
|
const startCLI = require('./start-cli'); |
||||
|
|
||||
|
test('for whiles that starts with strict directive', (t) => { |
||||
|
const script = Path.join('examples', 'use-strict.js'); |
||||
|
const cli = startCLI([script]); |
||||
|
|
||||
|
function onFatal(error) { |
||||
|
cli.quit(); |
||||
|
throw error; |
||||
|
} |
||||
|
|
||||
|
return cli.waitFor(/break/) |
||||
|
.then(() => cli.waitForPrompt()) |
||||
|
.then(() => { |
||||
|
t.match( |
||||
|
cli.output, |
||||
|
/break in [^:]+:(?:1|2)[^\d]/, |
||||
|
'pauses either on strict directive or first "real" line'); |
||||
|
}) |
||||
|
.then(() => cli.quit()) |
||||
|
.then(null, onFatal); |
||||
|
}); |
Loading…
Reference in new issue