JintScript.cs 480 B

12345678910111213141516171819
  1. using Esprima.Ast;
  2. namespace Jint.Runtime.Interpreter.Statements
  3. {
  4. internal sealed class JintScript : JintStatement<Script>
  5. {
  6. private readonly JintStatementList _list;
  7. public JintScript(Engine engine, Script script) : base(engine, script)
  8. {
  9. _list = new JintStatementList(_engine, null, _statement.Body);
  10. }
  11. protected override Completion ExecuteInternal()
  12. {
  13. return _list.Execute();
  14. }
  15. }
  16. }