You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meteor.methods({
'test': function (test) {
check(test, Number);
}
});
And I call the method with NaN as test value, an error is thrown:
I20141016-01:42:50.170(-7)? Exception while invoking method 'test' Error: Did not check() all arguments during call to 'test'
I20141016-01:42:50.173(-7)? at _.extend.throwUnlessAllArgumentsHaveBeenChecked (packages/check/match.js:352)
I20141016-01:42:50.174(-7)? at Object.Match._failIfArgumentsAreNotAllChecked (packages/check/match.js:108)
I20141016-01:42:50.174(-7)? at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1591)
I20141016-01:42:50.174(-7)? at packages/ddp/livedata_server.js:648
I20141016-01:42:50.175(-7)? at _.extend.withValue (packages/meteor/dynamics_nodejs.js:56)
I20141016-01:42:50.175(-7)? at packages/ddp/livedata_server.js:647
I20141016-01:42:50.175(-7)? at _.extend.withValue (packages/meteor/dynamics_nodejs.js:56)
I20141016-01:42:50.175(-7)? at _.extend.protocol_handlers.method (packages/ddp/livedata_server.js:646)
I20141016-01:42:50.176(-7)? at packages/ddp/livedata_server.js:546
This is not correct. I am checking the value. For normal numbers everything works as expected.
The text was updated successfully, but these errors were encountered:
If I have such method:
And I call the method with
NaN
as test value, an error is thrown:This is not correct. I am checking the value. For normal numbers everything works as expected.
The text was updated successfully, but these errors were encountered: