mirror of
https://github.com/tc39/test262.git
synced 2025-08-29 05:48:28 +02:00
23 lines
703 B
JavaScript
23 lines
703 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown
|
|
*
|
|
* @path ch15/15.3/15.3.4/15.3.4.3/S15.3.4.3_A6_T3.js
|
|
* @description argArray is (object,"1,3,4")
|
|
*/
|
|
|
|
obj={};
|
|
|
|
//CHECK#1
|
|
try {
|
|
Function().apply(obj,"1,3,4");
|
|
$FAIL('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
|
|
} catch (e) {
|
|
if (!(e instanceof TypeError)) {
|
|
$ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
|
|
}
|
|
}
|
|
|