Summary: Wrong error message in TypeError produced by for..of with null object Test: <script> function foo() { let chain = Promise.resolve(); for (let x of null) console.log(x); } foo(); </script> Steps to Reproduce: 1. Load test case without the inspector open 2. Open the inspector to view the uncaught exception => Wrong message, but points to the correct location [Error] TypeError: null is not an object (evaluating 'Promise.resolve()')