Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit 88331ac

Browse files
committed
Hack around pinvoke resolve error on some mscorlib methods
1 parent 1311137 commit 88331ac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Libraries/JSIL.Core.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6504,8 +6504,11 @@ JSIL.$PlacePInvokeMember = function (
65046504
var newValue = null;
65056505
var existingValue = target[memberName];
65066506

6507-
if (existingValue)
6508-
JSIL.RuntimeError("PInvoke member " + memberName + " obstructed");
6507+
if (existingValue) {
6508+
// JSIL.RuntimeError("PInvoke member " + memberName + " obstructed");
6509+
// Most likely explanation is that an external method took our place.
6510+
return;
6511+
}
65096512

65106513
var dllName = pInvokeInfo.Module;
65116514
var importedName = pInvokeInfo.EntryPoint || methodName;

0 commit comments

Comments
 (0)