New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 598768 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Apr 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Devtools crash when debugging exception in ES6 constructor

Project Member Reported by blois@google.com, Mar 29 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36

Steps to reproduce the problem:
1. The javascript:
class A { constructor() {} }
class B extends A {
  constructor() {
    throw new Error();
    super();
  }
}
new B();
2. Pause on exceptions in the javascript debugger.

3. When debugger breaks on the throw in B::constructor, the page Aw Snaps.

It works properly when the super() call is before the throw.

What is the expected behavior?
Page does not crash when debugger pauses.

What went wrong?
Page crashes when debugger pauses.

Did this work before? N/A 

Chrome version: 49.0.2623.87  Channel: stable
OS Version: 49
Flash Version: Shockwave Flash 21.0 r0

It works properly when the super() call is before the throw.
 
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: Needs-Feedback
Thank you for report.
I try to reproduce it. My test page contains:
<script>
class A { constructor() {} }
class B extends A {
  constructor() {
    throw new Error();
    super();
  }
}
new B();
</script>
I've reloaded it with pause on exception enabled in current stable and in ToT and crash isn't occurred. Could you provide more details?
Status: WontFix (was: Assigned)
Feel free to reassign it back if it's still reproducible.

Sign in to add a comment