summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/Symbol.species/return-value.js
blob: 5eec628c6b7b4eaf95013e532b653cc5ed1b4ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-get-regexp-@@species
description: Return value of @@species accessor method
info: |
    1. Return the this value.
features: [Symbol.species]
---*/

var thisVal = {};
var accessor = Object.getOwnPropertyDescriptor(RegExp, Symbol.species).get;

assert.sameValue(accessor.call(thisVal), thisVal);

reportCompare(0, 0);