mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
082cc8d6d8
common.js needs to be loaded in all tests so that there is checking for variable leaks and possibly other things. However, it does not need to be assigned to a variable if nothing in common.js is referred to elsewhere in the test. PR-URL: https://github.com/nodejs/node/pull/4408 Reviewed-By: James M Snell <jasnell@gmail.com>
12 lines
525 B
JavaScript
12 lines
525 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const punycode = require('punycode');
|
|
|
|
// This test verifies that line numbers in core modules are reported correctly.
|
|
// The punycode module was chosen for testing because it changes infrequently.
|
|
// If this test begins failing, it is likely due to a punycode update, and the
|
|
// test's assertions simply need to be updated to reflect the changes. If a
|
|
// punycode update was not made, and this test begins failing, then line numbers
|
|
// are probably actually broken.
|
|
punycode.decode('x');
|