Fix test: can only look for FunctionDeclaration syntax.
15.3.4.2 Function.prototype.toString ( ) An implementation-dependent representation of the function is returned. This representation has the syntax of a FunctionDeclaration. Note in particular that the use and placement of white space, line terminators, and semicolons within the representation string is implementation-dependent. git-svn-id: svn://10.0.0.236/trunk@92995 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
08a46cbae9
commit
ce375cd2d1
@ -41,9 +41,9 @@
|
||||
|
||||
testcases[tc++] = new TestCase(
|
||||
SECTION,
|
||||
"StripSpaces(Array.prototype.concat.toString())",
|
||||
"functionconcat(){[nativecode]}",
|
||||
StripSpaces(Array.prototype.concat.toString()) );
|
||||
"StripSpaces(Array.prototype.concat.toString()).substring(0,17)",
|
||||
"functionconcat(){",
|
||||
StripSpaces(Array.prototype.concat.toString()).substring(0,17));
|
||||
|
||||
test();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user