Bug 144284 - Extending undefined in class syntax should throw a TypeError
Summary: Extending undefined in class syntax should throw a TypeError
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks: 140491
  Show dependency treegraph
 
Reported: 2015-04-27 15:38 PDT by Erik Arvidsson
Modified: 2015-05-04 12:24 PDT (History)
5 users (show)

See Also:


Attachments
Fixes the bug (7.18 KB, patch)
2015-05-03 17:04 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2015-04-27 15:38:29 PDT
http://trac.webkit.org/browser/trunk/LayoutTests/js/script-tests/class-syntax-extends.js#L73

shouldThrow('new (class extends undefined { constructor () { this } })', '"ReferenceError: Cannot access uninitialized variable."');

the `extends undefined` should throw a TypeError.
Comment 1 Ryosuke Niwa 2015-05-03 17:04:49 PDT
Created attachment 252294 [details]
Fixes the bug
Comment 2 Ryosuke Niwa 2015-05-04 12:24:15 PDT
Thanks for the reviews, Darin!
Comment 3 Ryosuke Niwa 2015-05-04 12:24:40 PDT
Comment on attachment 252294 [details]
Fixes the bug

Clearing flags on attachment: 252294

Committed r183759: <http://trac.webkit.org/changeset/183759>
Comment 4 Ryosuke Niwa 2015-05-04 12:24:46 PDT
All reviewed patches have been landed.  Closing bug.