Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / Symbol.species / return-value.js
blob5eec628c6b7b4eaf95013e532b653cc5ed1b4ddb
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-get-regexp-@@species
5 description: Return value of @@species accessor method
6 info: |
7     1. Return the this value.
8 features: [Symbol.species]
9 ---*/
11 var thisVal = {};
12 var accessor = Object.getOwnPropertyDescriptor(RegExp, Symbol.species).get;
14 assert.sameValue(accessor.call(thisVal), thisVal);
16 reportCompare(0, 0);