nyx/tests/dynamic_fixtures/class_method/javascript/benign.js

16 lines
439 B
JavaScript
Raw Permalink Normal View History

2026-06-05 10:16:30 -05:00
// Phase 19 (Track M.1) — class-method benign control for JavaScript.
//
// UserService.run routes the input through execFileSync with argv form so
// the shell never interprets the string or echoes marker bytes.
'use strict';
const { execFileSync } = require('child_process');
class UserService {
constructor() {}
run(input) {
return execFileSync('true', [input]).toString();
}
}
module.exports = { UserService };