Strict mode Failing
Expected no error, got SyntaxError: invalid statement encountered.
non-Strict mode Failing
Expected no error, got SyntaxError: invalid statement encountered.
Features:
- Symbol.species
Expected no error, got SyntaxError: invalid statement encountered.
Expected no error, got SyntaxError: invalid statement encountered.
// Copyright 2015 Cubane Canada, Inc. All rights reserved. // See LICENSE for details. /*--- info: | Symbol.species is retained on subclassing author: Sam Mikes description: Symbol.species is retained on subclassing features: [Symbol.species] ---*/ class MyRegExp extends RegExp {}; assert.sameValue(MyRegExp[Symbol.species], MyRegExp);