2015-02-20 03:41:55 +01:00
|
|
|
// Copyright 2015 Cubane Canada, Inc. All rights reserved.
|
|
|
|
// See LICENSE for details.
|
|
|
|
|
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2015-02-20 03:41:55 +01:00
|
|
|
Symbol.species is retained on subclassing
|
|
|
|
author: Sam Mikes
|
|
|
|
description: Symbol.species is retained on subclassing
|
2017-09-08 00:32:27 +02:00
|
|
|
features: [Symbol.species]
|
2015-02-20 03:41:55 +01:00
|
|
|
---*/
|
|
|
|
|
2018-02-15 21:41:33 +01:00
|
|
|
class MyRegExp extends RegExp {};
|
2015-02-20 03:41:55 +01:00
|
|
|
|
|
|
|
assert.sameValue(MyRegExp[Symbol.species], MyRegExp);
|