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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-1 es5id: 15.4.3.2-0-1
description: Array.isArray must exist as a function description: Array.isArray must exist as a function
---*/ ---*/
var f = Array.isArray; var f = Array.isArray;
assert.sameValue(typeof(f), "function", 'typeof(f)'); 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-2 es5id: 15.4.3.2-0-2
description: Array.isArray must exist as a function taking 1 parameter 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-0-3 es5id: 15.4.3.2-0-3
description: Array.isArray return true if its argument is an Array description: Array.isArray return true if its argument is an Array
---*/ ---*/
var a = []; var a = [];
var b = Array.isArray(a); var b = Array.isArray(a);
assert.sameValue(b, true, 'b'); assert.sameValue(b, true, 'b');

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-1 es5id: 15.4.3.2-1-1
description: Array.isArray applied to boolean primitive 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-10 es5id: 15.4.3.2-1-10
description: Array.isArray applied to RegExp object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-11 es5id: 15.4.3.2-1-11
description: Array.isArray applied to the JSON object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-12 es5id: 15.4.3.2-1-12
description: Array.isArray applied to Error object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-13 es5id: 15.4.3.2-1-13
description: Array.isArray applied to Arguments object description: Array.isArray applied to Arguments object
---*/ ---*/
var arg; var arg;
(function fun() { (function fun() {
arg = arguments; arg = arguments;
}(1, 2, 3)); }(1, 2, 3));
assert.sameValue(Array.isArray(arg), false, 'Array.isArray(arg)'); 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-15 es5id: 15.4.3.2-1-15
description: Array.isArray applied to the global object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-2 es5id: 15.4.3.2-1-2
description: Array.isArray applied to Boolean Object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-3 es5id: 15.4.3.2-1-3
description: Array.isArray applied to number primitive 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-4 es5id: 15.4.3.2-1-4
description: Array.isArray applied to Number object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-5 es5id: 15.4.3.2-1-5
description: Array.isArray applied to string primitive 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-6 es5id: 15.4.3.2-1-6
description: Array.isArray applied to String object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-7 es5id: 15.4.3.2-1-7
description: Array.isArray applied to Function object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-8 es5id: 15.4.3.2-1-8
description: Array.isArray applied to the Math object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-1-9 es5id: 15.4.3.2-1-9
description: Array.isArray applied to Date object 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-2-1 es5id: 15.4.3.2-2-1
description: Array.isArray applied to an object with an array as the prototype description: Array.isArray applied to an object with an array as the prototype
---*/ ---*/
var proto = []; var proto = [];
var Con = function () { }; var Con = function () { };
Con.prototype = proto; Con.prototype = proto;
var child = new Con(); var child = new Con();
assert.sameValue(Array.isArray(child), false, 'Array.isArray(child)'); 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-2-2 es5id: 15.4.3.2-2-2
description: > description: >
Array.isArray applied to an object with Array.prototype as the 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es5id: 15.4.3.2-2-3 es5id: 15.4.3.2-2-3
description: > description: >
Array.isArray applied to an Array-like object with length and some 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. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.isarray
es6id: 22.1.2.2 es6id: 22.1.2.2
description: > description: >
Array.isArray.name is "isArray". Array.isArray.name is "isArray".