From 3207bf74d0b6c4249cd85b83bf4bb64c72f1ed2d Mon Sep 17 00:00:00 2001 From: Michael Ficarra <git@michael.ficarra.me> Date: Wed, 7 Mar 2018 10:13:11 -0800 Subject: [PATCH] Function.prototype.toString works on symbol-named built-ins --- .../prototype/toString/symbol-named-builtins.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/built-ins/Function/prototype/toString/symbol-named-builtins.js diff --git a/test/built-ins/Function/prototype/toString/symbol-named-builtins.js b/test/built-ins/Function/prototype/toString/symbol-named-builtins.js new file mode 100644 index 0000000000..c1666cdc51 --- /dev/null +++ b/test/built-ins/Function/prototype/toString/symbol-named-builtins.js @@ -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); -- GitLab