mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 00:14:35 +02:00
This commit is contained in:
parent
dfa7024e15
commit
318cebf831
@ -1,18 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name: S15.3.4.2_A1_T1;
|
|
||||||
* @section: 15.3.4.2;
|
|
||||||
* @assertion: An implementation-dependent representation of the function is returned. This representation has the syntax of a FunctionDeclaration;
|
|
||||||
* @description: For testing use Function.prototype.toString() function;
|
|
||||||
*/
|
|
||||||
|
|
||||||
var f = function(x) {
|
|
||||||
return x*x;
|
|
||||||
};
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
if (eval(f.toString())(10) !== f(10)) {
|
|
||||||
$ERROR('#1: An implementation-dependent representation of the function is returned. This representation has the syntax of a FunctionDeclaration');
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user