summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ficarra <git@michael.ficarra.me>2018-03-07 10:13:11 -0800
committerRick Waldron <waldron.rick@gmail.com>2018-03-07 14:09:45 -0500
commit3207bf74d0b6c4249cd85b83bf4bb64c72f1ed2d (patch)
treed516cfda9b88a8e6845fcdfd24923cf8c534b2b8
parentf3b8aff71fd6133aafd900a414df82db7a00d6cb (diff)
downloadqtdeclarative-testsuites-3207bf74d0b6c4249cd85b83bf4bb64c72f1ed2d.tar.gz
Function.prototype.toString works on symbol-named built-ins
-rw-r--r--test/built-ins/Function/prototype/toString/symbol-named-builtins.js11
1 files changed, 11 insertions, 0 deletions
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 000000000..c1666cdc5
--- /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);