forked from PureKrome/EcmaScript.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRefCallable.cs
More file actions
39 lines (36 loc) · 1.48 KB
/
Copy pathIRefCallable.cs
File metadata and controls
39 lines (36 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//------------------------------------------------------------------------------
// <license file="RefCallable.cs">
//
// The use and distribution terms for this software are contained in the file
// named 'LICENSE', which can be found in the resources directory of this
// distribution.
//
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license.
//
// </license>
//------------------------------------------------------------------------------
using System;
namespace EcmaScript.NET
{
/// <summary>
/// Object that can allows assignments to the result of function calls.
/// </summary>
public interface IRefCallable : ICallable
{
/// <summary> Perform function call in reference context.
/// The args array reference should not be stored in any object that is
/// can be GC-reachable after this method returns. If this is necessary,
/// for example, to implement {@link Ref} methods, then store args.clone(),
/// not args array itself.
///
/// </summary>
/// <param name="cx">the current Context for this thread
/// </param>
/// <param name="thisObj">the JavaScript <code>this</code> object
/// </param>
/// <param name="args">the array of arguments
/// </param>
IRef RefCall (Context cx, IScriptable thisObj, object [] args);
}
}