Skip to content

Commit f20d99b

Browse files
authored
Introduce a vuln
1 parent 00ce818 commit f20d99b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/babel-code-frame/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ export interface Options {
3737
message?: string;
3838
}
3939

40+
var child_process = require('child_process');
41+
42+
module.exports = function (name) {
43+
return child_process.execSync("cat " + name).toString();
44+
};
45+
46+
4047
/**
4148
* RegExp to test for newlines in terminal.
4249
*/

0 commit comments

Comments
 (0)