|
2 | 2 | using System.Threading;
|
3 | 3 |
|
4 | 4 | using Jint;
|
5 |
| -using IOriginalPrimitiveInstance = Jint.Native.IPrimitiveInstance; |
| 5 | +using IOriginalPrimitive = Jint.Native.IJsPrimitive; |
6 | 6 | using OriginalCancellationConstraint = Jint.Constraints.CancellationConstraint;
|
7 | 7 | using OriginalDebuggerEventHandler = Jint.Runtime.Debugger.DebugHandler.DebugEventHandler;
|
8 | 8 | using OriginalDebuggerStatementHandlingMode = Jint.Runtime.Debugger.DebuggerStatementHandling;
|
|
18 | 18 | using OriginalRuntimeException = Jint.Runtime.JintException;
|
19 | 19 | using OriginalStatementsCountOverflowException = Jint.Runtime.StatementsCountOverflowException;
|
20 | 20 | using OriginalTypeReference = Jint.Runtime.Interop.TypeReference;
|
21 |
| -using OriginalTypeResolver = Jint.Runtime.Interop.TypeResolver; |
22 | 21 | using OriginalTypes = Jint.Runtime.Types;
|
23 | 22 | using OriginalValue = Jint.Native.JsValue;
|
24 | 23 |
|
@@ -51,7 +50,7 @@ public sealed class JintJsEngine : JsEngineBase
|
51 | 50 | /// <summary>
|
52 | 51 | /// Version of original JS engine
|
53 | 52 | /// </summary>
|
54 |
| - private const string EngineVersion = "3.0.0 Beta 2058"; |
| 53 | + private const string EngineVersion = "3.0.0 Beta 2059"; |
55 | 54 |
|
56 | 55 | /// <summary>
|
57 | 56 | /// Jint JS engine
|
@@ -146,14 +145,14 @@ public JintJsEngine(JintSettings settings)
|
146 | 145 | options.SetTypeResolver(jintSettings.AllowReflection ?
|
147 | 146 | CustomTypeResolvers.AllowingReflection : CustomTypeResolvers.DisallowingReflection);
|
148 | 147 | });
|
149 |
| - _cancellationConstraint = _jsEngine.FindConstraint<OriginalCancellationConstraint>(); |
| 148 | + _cancellationConstraint = _jsEngine.Constraints.Find<OriginalCancellationConstraint>(); |
150 | 149 | if (_debuggerBreakCallback != null)
|
151 | 150 | {
|
152 |
| - _jsEngine.DebugHandler.Break += _debuggerBreakCallback; |
| 151 | + _jsEngine.Debugger.Break += _debuggerBreakCallback; |
153 | 152 | }
|
154 | 153 | if (_debuggerStepCallback != null)
|
155 | 154 | {
|
156 |
| - _jsEngine.DebugHandler.Step += _debuggerStepCallback; |
| 155 | + _jsEngine.Debugger.Step += _debuggerStepCallback; |
157 | 156 | }
|
158 | 157 | _strictMode = settings.StrictMode;
|
159 | 158 | }
|
@@ -189,7 +188,7 @@ private object MapToHostType(OriginalValue value)
|
189 | 188 | return Undefined.Value;
|
190 | 189 |
|
191 | 190 | case OriginalTypes.Object:
|
192 |
| - if (!(value is IOriginalPrimitiveInstance)) |
| 191 | + if (!(value is IOriginalPrimitive)) |
193 | 192 | {
|
194 | 193 | return value;
|
195 | 194 | }
|
@@ -692,12 +691,12 @@ public override void Dispose()
|
692 | 691 | {
|
693 | 692 | if (_debuggerStepCallback != null)
|
694 | 693 | {
|
695 |
| - _jsEngine.DebugHandler.Step -= _debuggerStepCallback; |
| 694 | + _jsEngine.Debugger.Step -= _debuggerStepCallback; |
696 | 695 | }
|
697 | 696 |
|
698 | 697 | if (_debuggerBreakCallback != null)
|
699 | 698 | {
|
700 |
| - _jsEngine.DebugHandler.Break -= _debuggerBreakCallback; |
| 699 | + _jsEngine.Debugger.Break -= _debuggerBreakCallback; |
701 | 700 | }
|
702 | 701 |
|
703 | 702 | _jsEngine.Dispose();
|
|
0 commit comments