summaryrefslogtreecommitdiff
path: root/src/zap/zapinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zap/zapinfo.cpp')
-rw-r--r--src/zap/zapinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zap/zapinfo.cpp b/src/zap/zapinfo.cpp
index eba29327a4..345a920902 100644
--- a/src/zap/zapinfo.cpp
+++ b/src/zap/zapinfo.cpp
@@ -2104,6 +2104,12 @@ void ZapInfo::getCallInfo(CORINFO_RESOLVED_TOKEN * pResolvedToken,
m_zapper->Warning(W("ReadyToRun: Methods with security checks not supported\n"));
ThrowHR(E_NOTIMPL);
}
+
+ if (GetCompileInfo()->IsNativeCallableMethod(pResult->hMethod))
+ {
+ m_zapper->Warning(W("ReadyToRun: References to methods with NativeCallableAttribute not supported\n"));
+ ThrowHR(E_NOTIMPL);
+ }
}
#endif