aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/llvm-mos.ts
diff options
context:
space:
mode:
authorOfek <ofekshilon@gmail.com>2024-03-10 10:04:29 +0200
committerGitHub <noreply@github.com>2024-03-10 10:04:29 +0200
commit8dd09d1c1f0e44db48d6fa42083a42377dd572fe (patch)
tree55daf629e22c7d2472851ef54119f070c91bcf51 /lib/compilers/llvm-mos.ts
parent1764c7c3874ba6e8a30ee4fe2c6e1812d442c748 (diff)
downloadcompiler-explorer-8dd09d1c1f0e44db48d6fa42083a42377dd572fe.tar.gz
compiler-explorer-8dd09d1c1f0e44db48d6fa42083a42377dd572fe.zip
Replace the deprecated `substr` with `substring` (#6236)gh-10941
Just some minor homekeeping.
Diffstat (limited to 'lib/compilers/llvm-mos.ts')
-rw-r--r--lib/compilers/llvm-mos.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/llvm-mos.ts b/lib/compilers/llvm-mos.ts
index 9ff68a784..026a0fe45 100644
--- a/lib/compilers/llvm-mos.ts
+++ b/lib/compilers/llvm-mos.ts
@@ -84,7 +84,7 @@ export class LLVMMOSCompiler extends ClangCompiler {
if (this.compiler.exe.includes('nes')) {
let nesFile = outputFilename;
if (outputFilename.endsWith('.elf')) {
- nesFile = outputFilename.substr(0, outputFilename.length - 4);
+ nesFile = outputFilename.substring(0, outputFilename.length - 4);
}
if (await utils.fileExists(nesFile)) {
@@ -93,7 +93,7 @@ export class LLVMMOSCompiler extends ClangCompiler {
} else if (this.compiler.exe.includes('c64')) {
let prgFile = outputFilename;
if (outputFilename.endsWith('.elf')) {
- prgFile = outputFilename.substr(0, outputFilename.length - 4);
+ prgFile = outputFilename.substring(0, outputFilename.length - 4);
}
if (await utils.fileExists(prgFile)) {