Add esid to Array/isArray front matter

This commit is contained in:
deathbearbrown 2017-06-28 11:57:55 -07:00 committed by Rick Waldron
parent 5ad8dc4219
commit 2f4d0be4b8
25 changed files with 49 additions and 24 deletions

View File

@ -2,10 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-1
description: Array.isArray must exist as a function
---*/
var f = Array.isArray;
var f = Array.isArray;
assert.sameValue(typeof(f), "function", 'typeof(f)');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-2
description: Array.isArray must exist as a function taking 1 parameter
---*/

View File

@ -2,11 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-3
description: Array.isArray return true if its argument is an Array
---*/
var a = [];
var b = Array.isArray(a);
var a = [];
var b = Array.isArray(a);
assert.sameValue(b, true, 'b');

View File

@ -2,16 +2,17 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-4
description: Array.isArray return false if its argument is not an Array
---*/
var b_num = Array.isArray(42);
var b_undef = Array.isArray(undefined);
var b_bool = Array.isArray(true);
var b_str = Array.isArray("abc");
var b_obj = Array.isArray({});
var b_null = Array.isArray(null);
var b_num = Array.isArray(42);
var b_undef = Array.isArray(undefined);
var b_bool = Array.isArray(true);
var b_str = Array.isArray("abc");
var b_obj = Array.isArray({});
var b_null = Array.isArray(null);
assert.sameValue(b_num, false, 'b_num');

View File

@ -2,12 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-5
description: >
Array.isArray return true if its argument is an Array
(Array.prototype)
---*/
var b = Array.isArray(Array.prototype);
var b = Array.isArray(Array.prototype);
assert.sameValue(b, true, 'b');

View File

@ -2,11 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-6
description: Array.isArray return true if its argument is an Array (new Array())
---*/
var a = new Array(10);
var b = Array.isArray(a);
var a = new Array(10);
var b = Array.isArray(a);
assert.sameValue(b, true, 'b');

View File

@ -2,12 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-7
description: Array.isArray returns false if its argument is not an Array
---*/
var o = new Object();
o[12] = 13;
var b = Array.isArray(o);
var o = new Object();
o[12] = 13;
var b = Array.isArray(o);
assert.sameValue(b, false, 'b');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-1
description: Array.isArray applied to boolean primitive
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-10
description: Array.isArray applied to RegExp object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-11
description: Array.isArray applied to the JSON object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-12
description: Array.isArray applied to Error object
---*/

View File

@ -2,14 +2,15 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-13
description: Array.isArray applied to Arguments object
---*/
var arg;
var arg;
(function fun() {
(function fun() {
arg = arguments;
}(1, 2, 3));
}(1, 2, 3));
assert.sameValue(Array.isArray(arg), false, 'Array.isArray(arg)');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-15
description: Array.isArray applied to the global object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-2
description: Array.isArray applied to Boolean Object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-3
description: Array.isArray applied to number primitive
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-4
description: Array.isArray applied to Number object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-5
description: Array.isArray applied to string primitive
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-6
description: Array.isArray applied to String object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-7
description: Array.isArray applied to Function object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-8
description: Array.isArray applied to the Math object
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-9
description: Array.isArray applied to Date object
---*/

View File

@ -2,14 +2,15 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-2-1
description: Array.isArray applied to an object with an array as the prototype
---*/
var proto = [];
var Con = function () { };
Con.prototype = proto;
var proto = [];
var Con = function () { };
Con.prototype = proto;
var child = new Con();
var child = new Con();
assert.sameValue(Array.isArray(child), false, 'Array.isArray(child)');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-2-2
description: >
Array.isArray applied to an object with Array.prototype as the

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es5id: 15.4.3.2-2-3
description: >
Array.isArray applied to an Array-like object with length and some

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.isarray
es6id: 22.1.2.2
description: >
Array.isArray.name is "isArray".