JintScript.cs 336 B

12345678910111213141516
  1. namespace Jint.Runtime.Interpreter.Statements;
  2. internal sealed class JintScript
  3. {
  4. private readonly JintStatementList _list;
  5. public JintScript(Script script)
  6. {
  7. _list = new JintStatementList(script);
  8. }
  9. public Completion Execute(EvaluationContext context)
  10. {
  11. return _list.Execute(context);
  12. }
  13. }