Skip to content

Commit

Permalink
Resolve deprecation warning in Haxe 4.2+ (#33)
Browse files Browse the repository at this point in the history
additional fixes for already merged pr
#28
  • Loading branch information
profelis authored Feb 6, 2023
1 parent bbf1aa0 commit 93a8027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hxcpp-debug-server/hxcpp/debug/jsonrpc/VariablesPrinter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class VariablesPrinter {
case TClass(Array): "Array";
case TClass(c): getClassName(c);
case TObject:
if (Std.is(value, Class)) {
if (Std.isOfType(value, Class)) {
getClassName(cast value);
}
"Anonymous";
Expand Down
4 changes: 2 additions & 2 deletions hxcpp-debug-server/hxcpp/debug/jsonrpc/eval/Interp.hx
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ class Interp {
case EBinop("=>", eKey, eValue): {
var key:Dynamic = expr(eKey);
var value:Dynamic = expr(eValue);
isAllString = isAllString && Std.is(key, String);
isAllInt = isAllInt && Std.is(key, Int);
isAllString = isAllString && Std.isOfType(key, String);
isAllInt = isAllInt && Std.isOfType(key, Int);
isAllObject = isAllObject && Reflect.isObject(key);
isAllEnum = isAllEnum && Reflect.isEnumValue(key);
keys.push(key);
Expand Down

0 comments on commit 93a8027

Please sign in to comment.