in-extends-expression-assigned.js (335B)
1 // Copyright (C) 2014 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 14.5 5 description: > 6 class name binding in extends expression, assigned 7 ---*/ 8 assert.throws(ReferenceError, function() { 9 var x = (class x extends x {}); 10 }); 11 12 reportCompare(0, 0);