Closed stc1988 closed 3 months ago
Thank you for the report. Yes, this problem was introduced with the recent change. Fortunately, the fix is simple. Change the line that fails from if (transferEncoding.toLowerCase() != "chunked")
to if (transferEncoding?.toLowerCase() != "chunked")
.
Change the line that fails from if (transferEncoding.toLowerCase() != "chunked") to if (transferEncoding?.toLowerCase() != "chunked").
Thank you. This change makes app works.
I confirmed this fixed. Thank you.
Build environment: mac Moddable SDK version: 3fe65e9 Target device: macOS simulator
Steps to Reproduce
fetch
example app using this build command:mcconfig -d -m -p mac
/Users/satoshi/Projects/moddable/examples/io/tcp/fetch/fetch.js (206) # Break: (anonymous-104): cannot coerce undefined to object!
Other information
This issue seems to occur in the case of recent commit and the conditions mentioned in the title.