Bug 1530879 - Update the test262 import to upstream rev 72381359409f06933889943d94d6c8f6812def94. r=jorendorff
authorJeff Walden <jwalden@mit.edu>
Tue, 26 Feb 2019 17:06:49 -0800
changeset 461665 2990c1cb854817a60abf6c6d71bd22abd7dc23e6
parent 461664 c86ae31a259544cc0e54d816a4d6e5c445306388
child 461666 4f433cf2ba16e7a9521a2f27a7f25537c6fc44bc
push id35626
push usercsabou@mozilla.com
push dateThu, 28 Feb 2019 11:31:08 +0000
treeherdermozilla-central@2ea0c1db7e60 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1530879
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530879 - Update the test262 import to upstream rev 72381359409f06933889943d94d6c8f6812def94. r=jorendorff
js/src/tests/test262/GIT-INFO
js/src/tests/test262/built-ins/Array/prototype/Symbol.unscopables/value.js
--- a/js/src/tests/test262/GIT-INFO
+++ b/js/src/tests/test262/GIT-INFO
@@ -1,5 +1,5 @@
-commit afe1b5adc7d961e4daf261867ffa9fd3d22b1235
-Author: Ross Kirsling <rkirsling@gmail.com>
-Date:   Tue Jan 29 21:33:39 2019 -0800
+commit 72381359409f06933889943d94d6c8f6812def94
+Author: Michael Ficarra <git@michael.ficarra.me>
+Date:   Tue Jan 29 15:00:43 2019 -0800
 
-    Align copyright line with repo license.
+    add flat/flatMap to Array unscopables
--- a/js/src/tests/test262/built-ins/Array/prototype/Symbol.unscopables/value.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/Symbol.unscopables/value.js
@@ -8,21 +8,23 @@ info: |
     22.1.3.32 Array.prototype [ @@unscopables ]
 
     1. Let unscopableList be ObjectCreate(null).
     2. Perform CreateDataProperty(unscopableList, "copyWithin", true).
     3. Perform CreateDataProperty(unscopableList, "entries", true).
     4. Perform CreateDataProperty(unscopableList, "fill", true).
     5. Perform CreateDataProperty(unscopableList, "find", true).
     6. Perform CreateDataProperty(unscopableList, "findIndex", true).
-    7. Perform CreateDataProperty(unscopableList, "includes", true).
-    8. Perform CreateDataProperty(unscopableList, "keys", true).
-    9. Perform CreateDataProperty(unscopableList, "values", true).
-    10. Assert: Each of the above calls will return true.
-    11. Return unscopableList.
+    7. Perform CreateDataProperty(unscopableList, "flat", true).
+    8. Perform CreateDataProperty(unscopableList, "flatMap", true).
+    9. Perform CreateDataProperty(unscopableList, "includes", true).
+    10. Perform CreateDataProperty(unscopableList, "keys", true).
+    11. Perform CreateDataProperty(unscopableList, "values", true).
+    12. Assert: Each of the above calls returns true.
+    13. Return unscopableList.
 includes: [propertyHelper.js]
 features: [Symbol.unscopables]
 ---*/
 
 var unscopables = Array.prototype[Symbol.unscopables];
 
 assert.sameValue(Object.getPrototypeOf(unscopables), null);
 
@@ -46,16 +48,26 @@ verifyEnumerable(unscopables, 'find');
 verifyWritable(unscopables, 'find');
 verifyConfigurable(unscopables, 'find');
 
 assert.sameValue(unscopables.findIndex, true, '`findIndex` property value');
 verifyEnumerable(unscopables, 'findIndex');
 verifyWritable(unscopables, 'findIndex');
 verifyConfigurable(unscopables, 'findIndex');
 
+assert.sameValue(unscopables.flat, true, '`flat` property value');
+verifyEnumerable(unscopables, 'flat');
+verifyWritable(unscopables, 'flat');
+verifyConfigurable(unscopables, 'flat');
+
+assert.sameValue(unscopables.flatMap, true, '`flatMap` property value');
+verifyEnumerable(unscopables, 'flatMap');
+verifyWritable(unscopables, 'flatMap');
+verifyConfigurable(unscopables, 'flatMap');
+
 assert.sameValue(unscopables.includes, true, '`includes` property value');
 verifyEnumerable(unscopables, 'includes');
 verifyWritable(unscopables, 'includes');
 verifyConfigurable(unscopables, 'includes');
 
 assert.sameValue(unscopables.keys, true, '`keys` property value');
 verifyEnumerable(unscopables, 'keys');
 verifyWritable(unscopables, 'keys');