Commit eca2ca9b authored by André Bargull's avatar André Bargull
Browse files

Bug 1415882 - Part 2: Update test262 test files. rs=evilpie

--HG--
rename : js/src/tests/test262/built-ins/RegExp/incomplete_hex_unicode_escape.js => js/src/tests/test262/annexB/built-ins/RegExp/incomplete_hex_unicode_escape.js
extra : rebase_source : d3372a308db2dfd688cbb9373941a1e58dda0157
parent e164ba21
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
commit a456b0a390bb0f70b4cb8d38cb5ab0ecb557a851
Merge: db05f2f 297502b
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Oct 23 11:02:44 2017 -0400
commit 8311965251953d4745aeb68c98fb71fab2eac1d0
Author: André Bargull <andre.bargull@gmail.com>
Date:   Fri Dec 1 11:16:43 2017 -0800

    Merge pull request #1310 from bocoup/contributing
    
    CONTRIBUTING.md Fix mistake in test generation section
    Fix copy-paste bugs in BigInt tests (#1361)
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ es6id: B.1.4
description: >
  "ControlLetter :: RUSSIAN ALPHABET is incorrect"
  Instead, fall back to semantics to match literal "\\c"
features: [generators]
---*/

function* invalidControls() {
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ info: >

  The production ClassAtomNoDash :: `\` evaluates as follows:
    1. Return the CharSet containing the single character `\`.
features: [generators]
---*/

function* invalidControls() {
+51 −10
Original line number Diff line number Diff line
@@ -15,42 +15,83 @@ info: >
features: [Symbol]
---*/

var sample = [1, 2, 3];
var sample = [1];
var poisoned = {
  get length() {
    throw new Test262Error("IsCallable(comparefn) should be observed before this.length");
  }
};

assert.throws(TypeError, function() {
 sample.sort(null);
});
}, "sample.sort(null);");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, null);
}, "[].sort.call(poisoned, null);");

assert.throws(TypeError, function() {
  sample.sort(true);
});
}, "sample.sort(true);");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, true);
}, "[].sort.call(poisoned, true);");

assert.throws(TypeError, function() {
  sample.sort(false);
});
}, "sample.sort(false);");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, false);
}, "[].sort.call(poisoned, false);");

assert.throws(TypeError, function() {
  sample.sort('');
});
}, "sample.sort('');");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, '');
}, "[].sort.call(poisoned, '');");

assert.throws(TypeError, function() {
  sample.sort(/a/g);
});
}, "sample.sort(/a/g);");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, /a/g);
}, "[].sort.call(poisoned, /a/g);");

assert.throws(TypeError, function() {
  sample.sort(42);
});
}, "sample.sort(42);");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, 42);
}, "[].sort.call(poisoned, 42);");

assert.throws(TypeError, function() {
  sample.sort([]);
});
}, "sample.sort([]);");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, []);
}, "[].sort.call(poisoned, []);");

assert.throws(TypeError, function() {
  sample.sort({});
});
}, "sample.sort({});");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, {});
}, "[].sort.call(poisoned, {});");

assert.throws(TypeError, function() {
  sample.sort(Symbol());
});
}, "sample.sort(Symbol());");

assert.throws(TypeError, function() {
  [].sort.call(poisoned, Symbol());
}, "[].sort.call(poisoned, Symbol());");

reportCompare(0, 0);
Loading