Function.prototype.toString works on symbol-named built-ins

This commit is contained in:
Michael Ficarra 2018-03-07 10:13:11 -08:00 committed by Rick Waldron
parent f3b8aff71f
commit 3207bf74d0
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// Copyright (C) 2018 Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function.prototype.tostring
description: Function.prototype.toString on symbol-named built-ins
includes: [nativeFunctionMatcher.js]
---*/
assertNativeFunction(RegExp.prototype[Symbol.match]);
assertNativeFunction(Object.getOwnPropertyDescriptor(RegExp, Symbol.species).get);