From 09ca8c681039c72b6028cea25833531faa39d37b Mon Sep 17 00:00:00 2001 From: Markus Felten Date: Mon, 2 Jul 2018 09:26:53 +0200 Subject: [PATCH] fix: typo --- src/grammar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grammar.js b/src/grammar.js index 02b19706..a4d75829 100644 --- a/src/grammar.js +++ b/src/grammar.js @@ -71,7 +71,7 @@ class BinOP extends AST { } } -class TeneryOP extends AST { +class TerneryOP extends AST { constructor(exp, a, b) { super(); Object.defineProperty(this, 'value', { @@ -297,7 +297,7 @@ const grammar = { const e1 = grammar.expression(0); grammar.advance(':'); const e2 = grammar.expression(0); - return new TeneryOP(left, e1, e2); + return new TerneryOP(left, e1, e2); } }, ':': {},