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
Currently an Env mapping is missing a value for... error will be thrown when a mapping specifies undefined as its return value, ie
[call(shouldReturnUndefined), undefined]
due to the check on line 164 of core.js:
var nextValFound = nextVal !== undefined;
I believe undefined is a valid return value, so this throw condition seems to be in error. The absence of a return value should instead be caught by isNestedArray, which confirms the array has a length of 2.
My suggested fix would be to remove line 164 (happy to do a PR!), but raising an issue to confirm there's not some other reasoning behind this assertion.
The text was updated successfully, but these errors were encountered:
Currently an
Env mapping is missing a value for...
error will be thrown when a mapping specifiesundefined
as its return value, iedue to the check on line 164 of
core.js
:I believe
undefined
is a valid return value, so this throw condition seems to be in error. The absence of a return value should instead be caught byisNestedArray
, which confirms the array has a length of 2.My suggested fix would be to remove line 164 (happy to do a PR!), but raising an issue to confirm there's not some other reasoning behind this assertion.
The text was updated successfully, but these errors were encountered: