summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Symbol/species/subclassing.js
blob: 45aceb514dc8458a53426bf20cc6db07b638abb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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);

reportCompare(0, 0);