-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 6.0.2: Fixed error handling in JavaScriptExtensions.ToPromise…
…; added JavaScriptExtensions.ToTask (GitHub Issue #182); added DocumentLoader.MaxCacheSize and DocumentCategory.MaxCacheSize; added code to break event connections on engine disposal (GitHub Issue #183); improved ES6 module support, fixing cycle crash (GitHub Issue #181); added DynamicHostObject (GitHub Issue #180); added BigInt / BigInteger support for V8 (GitHub Issue #176); hardened Assembly.Load call in V8Proxy.cs (GitHub Issue #175); improved V8Update environment isolation to fix some V8 build issues (GitHub Issue #185); updated API documentation. Tested with V8 8.3.110.9.
- Loading branch information
1 parent
18478cb
commit ee1a5e3
Showing
642 changed files
with
2,916 additions
and
1,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using System.Collections.Generic; | ||
using System.Dynamic; | ||
|
||
namespace Microsoft.ClearScript | ||
{ | ||
internal sealed class DynamicHostMetaObject : DynamicMetaObject | ||
{ | ||
private readonly IDynamicMetaObjectProvider metaObjectProvider; | ||
private readonly DynamicMetaObject metaObject; | ||
|
||
public DynamicHostMetaObject(IDynamicMetaObjectProvider metaObjectProvider, DynamicMetaObject metaObject) | ||
: base(metaObject.Expression, metaObject.Restrictions, metaObject.Value) | ||
{ | ||
this.metaObjectProvider = metaObjectProvider; | ||
this.metaObject = metaObject; | ||
} | ||
|
||
public bool HasMember(string name, bool ignoreCase) | ||
{ | ||
return DynamicHostObject.HasMember(metaObjectProvider, metaObject, name, ignoreCase); | ||
} | ||
|
||
#region DynamicMetaObject overrides | ||
|
||
public override IEnumerable<string> GetDynamicMemberNames() | ||
{ | ||
return metaObject.GetDynamicMemberNames(); | ||
} | ||
|
||
public override DynamicMetaObject BindBinaryOperation(BinaryOperationBinder binder, DynamicMetaObject arg) | ||
{ | ||
return metaObject.BindBinaryOperation(binder, arg); | ||
} | ||
|
||
public override DynamicMetaObject BindConvert(ConvertBinder binder) | ||
{ | ||
return metaObject.BindConvert(binder); | ||
} | ||
|
||
public override DynamicMetaObject BindCreateInstance(CreateInstanceBinder binder, DynamicMetaObject[] args) | ||
{ | ||
return metaObject.BindCreateInstance(binder, args); | ||
} | ||
|
||
public override DynamicMetaObject BindDeleteIndex(DeleteIndexBinder binder, DynamicMetaObject[] indexes) | ||
{ | ||
return metaObject.BindDeleteIndex(binder, indexes); | ||
} | ||
|
||
public override DynamicMetaObject BindDeleteMember(DeleteMemberBinder binder) | ||
{ | ||
return metaObject.BindDeleteMember(binder); | ||
} | ||
|
||
public override DynamicMetaObject BindGetIndex(GetIndexBinder binder, DynamicMetaObject[] indexes) | ||
{ | ||
return metaObject.BindGetIndex(binder, indexes); | ||
} | ||
|
||
public override DynamicMetaObject BindGetMember(GetMemberBinder binder) | ||
{ | ||
return metaObject.BindGetMember(binder); | ||
} | ||
|
||
public override DynamicMetaObject BindInvoke(InvokeBinder binder, DynamicMetaObject[] args) | ||
{ | ||
return metaObject.BindInvoke(binder, args); | ||
} | ||
|
||
public override DynamicMetaObject BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args) | ||
{ | ||
return metaObject.BindInvokeMember(binder, args); | ||
} | ||
|
||
public override DynamicMetaObject BindSetIndex(SetIndexBinder binder, DynamicMetaObject[] indexes, DynamicMetaObject value) | ||
{ | ||
return metaObject.BindSetIndex(binder, indexes, value); | ||
} | ||
|
||
public override DynamicMetaObject BindSetMember(SetMemberBinder binder, DynamicMetaObject value) | ||
{ | ||
return metaObject.BindSetMember(binder, value); | ||
} | ||
|
||
public override DynamicMetaObject BindUnaryOperation(UnaryOperationBinder binder) | ||
{ | ||
return metaObject.BindUnaryOperation(binder); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
Oops, something went wrong.