mirror of
https://github.com/tc39/test262.git
synced 2025-07-03 20:24:38 +02:00
This commit is contained in:
parent
96682a8372
commit
72a64280ae
@ -123,7 +123,6 @@
|
|||||||
<test id="15.4.4.4-5-c-i-1">https://bugs.ecmascript.org/show_bug.cgi?id=69</test>
|
<test id="15.4.4.4-5-c-i-1">https://bugs.ecmascript.org/show_bug.cgi?id=69</test>
|
||||||
|
|
||||||
<!-- Extension clause -->
|
<!-- Extension clause -->
|
||||||
<test id="S13.0_A5">https://bugs.ecmascript.org/show_bug.cgi?id=133</test>
|
|
||||||
<test id="S7.8.4_A4.3_T5">https://bugs.ecmascript.org/show_bug.cgi?id=127</test>
|
<test id="S7.8.4_A4.3_T5">https://bugs.ecmascript.org/show_bug.cgi?id=127</test>
|
||||||
<test id="S7.8.4_A4.3_T6">https://bugs.ecmascript.org/show_bug.cgi?id=127</test>
|
<test id="S7.8.4_A4.3_T6">https://bugs.ecmascript.org/show_bug.cgi?id=127</test>
|
||||||
|
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name: S13_A5;
|
|
||||||
* @section: 13, 10.1.2;
|
|
||||||
* @assertion: Only FormalParameterList as arguments list is allowed;
|
|
||||||
* @description: Trying to use [arg1, arg2, arg3], (arg1, arg2, arg3), etc. as a FormalParameterList;
|
|
||||||
*/
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//CHECK#1
|
|
||||||
try{
|
|
||||||
eval("function __func([arg1, arg2, arg3]){return arguments.length;}");
|
|
||||||
$ERROR('#1: eval("function __func([arg1, arg2, arg3]){return arguments.length;}") lead to throwing exception');
|
|
||||||
} catch(e){
|
|
||||||
if(!(e instanceof SyntaxError)){
|
|
||||||
$ERROR('#1.1: eval("function __func([arg1, arg2, arg3]){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//CHECK#2
|
|
||||||
try{
|
|
||||||
eval("function __func((arg1, arg2, arg3)){return arguments.length;}");
|
|
||||||
$ERROR('#2: eval("function __func((arg1, arg2, arg3)){return arguments.length;}") lead to throwing exception')
|
|
||||||
} catch(e){
|
|
||||||
if(!(e instanceof SyntaxError)){
|
|
||||||
$ERROR('#2.1: eval("function __func((arg1, arg2, arg3)){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//CHECK#3
|
|
||||||
try{
|
|
||||||
eval("function __func(arg1, arg2, arg3,){return arguments.length;}");
|
|
||||||
$ERROR('#3: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception')
|
|
||||||
} catch(e){
|
|
||||||
if(!(e instanceof SyntaxError)){
|
|
||||||
$ERROR('#3.1: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
Loading…
x
Reference in New Issue
Block a user