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 0000000000..6c6783e339 --- /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);