Skip to content

Commit 6ecbdc8

Browse files
committed
Updated changelog
1 parent 0a52ffa commit 6ecbdc8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Added wrapping of `Task` in `Future` (#64)
55
- Added JSX syntax (#120)
66
- Added default `jsx` and `html` function (#120)
7+
- Added events to `Engine` to handle uncaught errors (#121)
78

89
# 2.0.3
910

src/Mages.Core/Runtime/ReflectionExtensions.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ public static MethodBase Find(this IEnumerable<MethodBase> methods, Type[] curre
8888

8989
public static Object Convert(this Type source, Object value, Type target)
9090
{
91-
var wrapper = value as WrapperObject;
92-
93-
if (wrapper == null)
91+
if (value is not WrapperObject wrapper)
9492
{
9593
var converter = Helpers.Converters.FindConverter(source, target);
9694
return converter.Invoke(value);

0 commit comments

Comments
 (0)