FunctionShim.cs 588 B

123456789101112131415161718192021
  1. using Jint.Native.Object;
  2. using Jint.Parser.Ast;
  3. using Jint.Runtime.Environments;
  4. namespace Jint.Native.Function
  5. {
  6. public sealed class FunctionShim : FunctionInstance
  7. {
  8. private readonly Engine _engine;
  9. public FunctionShim(Engine engine, ObjectInstance prototype, Identifier[] parameters, LexicalEnvironment scope) : base(engine, prototype, parameters, scope, false)
  10. {
  11. _engine = engine;
  12. }
  13. public override object Call(object thisObject, object[] arguments)
  14. {
  15. return Undefined.Instance;
  16. }
  17. }
  18. }