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

Commit

Permalink
Avoid undefined usage as argumnet value for JSIL.GetMembersInternal.
Browse files Browse the repository at this point in the history
  • Loading branch information
iskiselev committed Oct 16, 2015
1 parent b16dc3f commit 048a0bc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions JSIL.Libraries/Includes/Core/Reflection/Classes/System.Type.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@
return JSIL.GetMembersInternal(
this,
defaultFlags(),
undefined,
undefined,
null,
null,
true
);
}
Expand All @@ -185,8 +185,8 @@
return JSIL.GetMembersInternal(
this,
flags,
undefined,
undefined,
null,
null,
true
);
}
Expand Down Expand Up @@ -289,7 +289,7 @@
System.Reflection.BindingFlags.Static |
System.Reflection.BindingFlags.Public,
"EventInfo",
undefined,
null,
true
);
}
Expand All @@ -299,14 +299,14 @@
new JSIL.MethodSignature(eventArray, [$jsilcore.TypeRef("System.Reflection.BindingFlags")]),
function (flags) {
return JSIL.GetMembersInternal(
this, flags, "EventInfo", undefined, true
this, flags, "EventInfo", null, true
);
}
);

var getConstructorImpl = function (self, flags, argumentTypes) {
var constructors = JSIL.GetMembersInternal(
self, flags, "ConstructorInfo", undefined, true
self, flags, "ConstructorInfo", null, true
);

JSIL.$FilterMethodsByArgumentTypes(constructors, argumentTypes);
Expand Down Expand Up @@ -415,7 +415,7 @@
System.Reflection.BindingFlags.Static |
System.Reflection.BindingFlags.Public,
"PropertyInfo",
undefined,
null,
true
);
}
Expand All @@ -425,13 +425,13 @@
new JSIL.MethodSignature(propertyArray, [$jsilcore.TypeRef("System.Reflection.BindingFlags")]),
function (flags) {
return JSIL.GetMembersInternal(
this, flags, "PropertyInfo", undefined, true
this, flags, "PropertyInfo", null, true
);
}
);

var getSingleFiltered = function (self, name, flags, type) {
var members = JSIL.GetMembersInternal(self, flags, type, undefined, true);
var members = JSIL.GetMembersInternal(self, flags, type, null, true);
var result = null;

for (var i = 0, l = members.length; i < l; i++) {
Expand Down

0 comments on commit 048a0bc

Please sign in to comment.