mirror of
https://github.com/nodejs/node.git
synced 2025-05-02 17:01:08 +00:00

PR-URL: https://github.com/nodejs/node/pull/13673 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
15 lines
323 B
JavaScript
15 lines
323 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
const stripShebang = require('internal/module').stripShebang;
|
|
|
|
[
|
|
['', ''],
|
|
['aa', 'aa'],
|
|
['#!', ''],
|
|
['#!bin/bash', ''],
|
|
['#!bin/bash\naa', '\naa'],
|
|
].forEach((i) => assert.strictEqual(stripShebang(i[0]), i[1]));
|