diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2017-02-14 04:12:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 04:12:31 +0300 |
commit | 6e731029e03149056edfdb5bbbec3b0b44c60728 (patch) | |
tree | b55277a235aa0955429bf960296313e96a4beeae /src/Test.CoreLib | |
parent | 981c476cfa2cfead8efc2bdc919f12a8524bf272 (diff) |
Remove a bit of Test.CoreLib bitrot (#2746)
Building with Test.CoreLib bitrotted a bit. Fixing some of that.
* Frozen string literals need to declare their dependency on
`System.String` EEType
* We need *some* `AppendExceptionStackFrame`
Two more things remaining that I'm not fixing now:
* Interop marshalling codegen insists that `System.StringBuilder` needs
to exist in the class library
* We need to make building reflection support goo optional
Diffstat (limited to 'src/Test.CoreLib')
-rw-r--r-- | src/Test.CoreLib/src/System/RuntimeExceptionHelpers.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Test.CoreLib/src/System/RuntimeExceptionHelpers.cs b/src/Test.CoreLib/src/System/RuntimeExceptionHelpers.cs index 81aff9827..f30bb0647 100644 --- a/src/Test.CoreLib/src/System/RuntimeExceptionHelpers.cs +++ b/src/Test.CoreLib/src/System/RuntimeExceptionHelpers.cs @@ -107,5 +107,13 @@ namespace System { RuntimeImports.RhpFallbackFailFast(); } + + [RuntimeExport("AppendExceptionStackFrame")] + private static void AppendExceptionStackFrame(object exceptionObj, IntPtr IP, int flags) + { + Exception ex = exceptionObj as Exception; + if (ex == null) + FailFast("Exceptions must derive from the System.Exception class"); + } } } |