Repro for crbug.com/1246863 (new.target support)

This illustrates the problem that new.target is not (consistently) accesible to the debugger from within functions, but provides the developer with cryptic error messages at times.

Steps

  1. Open DevTools
  2. Click and observe that the debugger pauses in C
  3. Evaluate new.target in the Console, which should yield the closure C
  4. Click and observe that the debugger pauses in D
  5. Evaluate new.target in the Console, which should yield the closure D
  6. Click and observe that the debugger pauses in E
  7. Evaluate new.target in the Console, which should yield the closure E