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
Without knowing too much about the terraform codebase, I modified isEmpty in terraform/lib/helpers/raw.js to be as follows:
var isEmpty = function(obj) {
for(var prop in obj) {
if(Object.prototype.hasOwnProperty.call(obj,prop))
return false;
}
return true;
}
This caused the error to change into something more informative. The change I made should not have changed the behaviour, but my form is more resistant to problems, so I'm letting you guys know in case you want to correct it throughout your codebase.
The text was updated successfully, but these errors were encountered:
While trying out harp.js, I fell onto this issue:
sintaxi/harp#101
Since the message is pretty tell-tale, a google led me to this: http://www.2ality.com/2012/01/objects-as-maps.html
Without knowing too much about the terraform codebase, I modified isEmpty in terraform/lib/helpers/raw.js to be as follows:
This caused the error to change into something more informative. The change I made should not have changed the behaviour, but my form is more resistant to problems, so I'm letting you guys know in case you want to correct it throughout your codebase.
The text was updated successfully, but these errors were encountered: