mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 20:44:43 +02:00
Function.prototype.toString works on anonymous well-known intrinsics
This commit is contained in:
parent
7d5a5fef36
commit
f3b8aff71f
12
test/built-ins/Function/prototype/toString/anonymous-intrinsics.js
vendored
Normal file
12
test/built-ins/Function/prototype/toString/anonymous-intrinsics.js
vendored
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user