Function.prototype.toString works on anonymous well-known intrinsics

This commit is contained in:
Michael Ficarra 2018-03-07 10:08:24 -08:00 committed by Rick Waldron
parent 7d5a5fef36
commit f3b8aff71f
1 changed files with 12 additions and 0 deletions

View File

@ -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);