Fix BHI1007 errors in NLua
"Don't use target-typed new for throw expressions" doesn't include rebuilt assembly because it should be identical IL modulo timestamps one of these was `Exception` and got stripped, one was checked-in as implicitly-typed see5fd840e14
and29c15adbb
This commit is contained in:
parent
f99b8fa518
commit
5f23ee44b6
|
@ -282,7 +282,7 @@ namespace NLua.Native
|
||||||
return nativeMethods;
|
return nativeMethods;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new("Could not load native lua methods");
|
throw new Exception("Could not load native lua methods");
|
||||||
});
|
});
|
||||||
|
|
||||||
internal static LuaNativeMethods GetNativeMethods()
|
internal static LuaNativeMethods GetNativeMethods()
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace NLua
|
||||||
var main = luaState.MainThread;
|
var main = luaState.MainThread;
|
||||||
if (!translators.TryGetValue(main, out translator))
|
if (!translators.TryGetValue(main, out translator))
|
||||||
{
|
{
|
||||||
throw new("Invalid luaState, couldn't find ObjectTranslator");
|
throw new Exception("Invalid luaState, couldn't find ObjectTranslator");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue