aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/sdcc.js
diff options
context:
space:
mode:
authorAustin Morton <apmorton@users.noreply.github.com>2020-09-26 16:59:26 -0400
committerGitHub <noreply@github.com>2020-09-26 16:59:26 -0400
commit044dcfbf8885d0115e64cf75f74a0f40f54e2370 (patch)
tree1dcc3e27139600d8e85004dc2a840bb420ccc835 /lib/compilers/sdcc.js
parentbac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff)
downloadcompiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz
compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/sdcc.js')
-rw-r--r--lib/compilers/sdcc.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/compilers/sdcc.js b/lib/compilers/sdcc.js
index 6f1b352f3..5a23b6823 100644
--- a/lib/compilers/sdcc.js
+++ b/lib/compilers/sdcc.js
@@ -21,10 +21,10 @@
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-const
- GccCompiler = require('./gcc');
-class SdccCompiler extends GccCompiler {
+import { GCCCompiler } from './gcc';
+
+export class SdccCompiler extends GCCCompiler {
static get key() { return 'sdcc'; }
optionsForFilter(filters, outputFilename) {
@@ -33,5 +33,3 @@ class SdccCompiler extends GccCompiler {
return options;
}
}
-
-module.exports = SdccCompiler;