Strict mode Failing
Expected no error, got SyntaxError: invalid statement encountered.
non-Strict mode Failing
Expected no error, got SyntaxError: invalid statement encountered.
Features:
- ∅
Expected no error, got SyntaxError: invalid statement encountered.
Expected no error, got SyntaxError: invalid statement encountered.
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 21.1.4 description: Instances has the own property length info: | 21.1.4 Properties of String Instances ... String instances have a length property, and a set of enumerable properties with integer indexed names. includes: [propertyHelper.js] ---*/ class S extends String {} var s1 = new S(); verifyProperty(s1, 'length', { value: 0, writable: false, enumerable: false, configurable: false, }); var s2 = new S('test262'); verifyProperty(s2, 'length', { value: 7, writable: false, enumerable: false, configurable: false, });