diff options
author | Austin Morton <apmorton@users.noreply.github.com> | 2020-09-26 16:59:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 16:59:26 -0400 |
commit | 044dcfbf8885d0115e64cf75f74a0f40f54e2370 (patch) | |
tree | 1dcc3e27139600d8e85004dc2a840bb420ccc835 /lib/compilers/win32-vc.js | |
parent | bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff) | |
download | compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip |
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/win32-vc.js')
-rw-r--r-- | lib/compilers/win32-vc.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/compilers/win32-vc.js b/lib/compilers/win32-vc.js index 51ed4a9c4..0fb31deaf 100644 --- a/lib/compilers/win32-vc.js +++ b/lib/compilers/win32-vc.js @@ -22,21 +22,20 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. -const Win32Compiler = require('./win32'), - argumentParsers = require('./argument-parsers'), - AsmParser = require('../asm-parser-vc'); +import { VcAsmParser } from '../asm-parser-vc'; -class Win32VcCompiler extends Win32Compiler { +import { VCParser } from './argument-parsers'; +import { Win32Compiler } from './win32'; + +export class Win32VcCompiler extends Win32Compiler { static get key() { return 'win32-vc'; } constructor(info, env) { super(info, env); - this.asm = new AsmParser(this.compilerProps); + this.asm = new VcAsmParser(this.compilerProps); } getArgumentParser() { - return argumentParsers.VC; + return VCParser; } } - -module.exports = Win32VcCompiler; |