Code to reproduce issue discussed in https://github.com/aws/aws-sdk-js/issues/136