JintScript.cs 407 B

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