diff options
author | Michael Ficarra <git@michael.ficarra.me> | 2018-03-07 10:08:24 -0800 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2018-03-07 14:09:45 -0500 |
commit | f3b8aff71fd6133aafd900a414df82db7a00d6cb (patch) | |
tree | d1b5afcf87b81747cedb273e6c22b47176ccf31a | |
parent | 7d5a5fef369f8054c6bf8d15c8cbbef1973aae01 (diff) | |
download | qtdeclarative-testsuites-f3b8aff71fd6133aafd900a414df82db7a00d6cb.tar.gz |
Function.prototype.toString works on anonymous well-known intrinsics
-rw-r--r-- | test/built-ins/Function/prototype/toString/anonymous-intrinsics.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/built-ins/Function/prototype/toString/anonymous-intrinsics.js b/test/built-ins/Function/prototype/toString/anonymous-intrinsics.js new file mode 100644 index 000000000..6c6783e33 --- /dev/null +++ b/test/built-ins/Function/prototype/toString/anonymous-intrinsics.js @@ -0,0 +1,12 @@ +// 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 anonymous well-known intrinsic function objects +includes: [nativeFunctionMatcher.js] +---*/ + +var ThrowTypeError = (function() { "use strict"; return Object.getOwnPropertyDescriptor(arguments, "callee").get })() +assert.sameValue(ThrowTypeError.name, ""); +assertNativeFunction(ThrowTypeError); |