Пример #1
0
        protected override void Initialize(EvaluationContext context)
        {
            var engine = context.Engine;

            _switchBlock  = new JintSwitchBlock(_statement.Cases);
            _discriminant = JintExpression.Build(engine, _statement.Discriminant);
        }
Пример #2
0
 protected override void Initialize()
 {
     _switchBlock  = new JintSwitchBlock(_engine, _statement.Cases);
     _discriminant = JintExpression.Build(_engine, _statement.Discriminant);
 }