Skip to content

Commit

Permalink
Rebuild tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Sep 14, 2019
1 parent 5210ba8 commit 6c733f8
Show file tree
Hide file tree
Showing 92 changed files with 105 additions and 35 deletions.
1 change: 1 addition & 0 deletions src/dstr-binding/default/try-catch-init.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
path: language/statements/try/dstr-catch-init-
name: try catch with initializer statement
Expand Down
2 changes: 1 addition & 1 deletion src/dstr-binding/error/try-catch-init.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
path: language/statements/try/dstr-catch-init-
name: try catch with initializer statement
Expand All @@ -19,4 +20,3 @@ assert.throws(/*{ error }*/, function() {
throw undefined;
} catch (/*{ elems }*/ = /*{ vals }*/) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ iter[Symbol.iterator] = function() {
};
};


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ iter[Symbol.iterator] = function() {
throw new Test262Error();
};


assert.throws(Test262Error, function() {
try {
throw undefined;
} catch ([x] = iter) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ iter[Symbol.iterator] = function() {
};
};


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ info: |
with v and environment as the arguments.
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ info: |
with v and environment as the arguments.
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function* g() {
second += 1;
};


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function* g() {
callCount += 1;
};


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var initCount = 0;
var iterCount = 0;
var iter = function*() { iterCount += 1; }();


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ info: |
---*/
var initCount = 0;


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ info: |
---*/
var values = [2, 1, 3];


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ info: |
var values = [2, 1, 3];
var initCount = 0;


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ info: |
2. ReturnIfAbrupt(iterator).
---*/


assert.throws(TypeError, function() {
try {
throw undefined;
} catch ([[x]] = [null]) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ info: |
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ info: |
7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function counter() {
initCount += 1;
}


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ info: |
c. ReturnIfAbrupt(v).
---*/


assert.throws(Test262Error, function() {
try {
throw undefined;
} catch ([x = (function() { throw new Test262Error(); })()] = [undefined]) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ info: |
4. If IsUnresolvableReference(V), throw a ReferenceError exception.
---*/


assert.throws(ReferenceError, function() {
try {
throw undefined;
} catch ([ x = unresolvableReference ] = []) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ g[Symbol.iterator] = function() {
};
};


assert.throws(Test262Error, function() {
try {
throw undefined;
} catch ([x] = g) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ g[Symbol.iterator] = function() {
};
};


assert.throws(Test262Error, function() {
try {
throw undefined;
} catch ([x] = g) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ info: |
with v and environment as the arguments.
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ info: |
with v and environment as the arguments.
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ info: |
with v and environment as the arguments.
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ info: |
with v and environment as the arguments.
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ info: |
2. ReturnIfAbrupt(valid).
---*/


assert.throws(TypeError, function() {
try {
throw undefined;
} catch ([{ x }] = [null]) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ info: |
2. ReturnIfAbrupt(valid).
---*/


assert.throws(TypeError, function() {
try {
throw undefined;
} catch ([{ x }] = []) {}
});

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ info: |
var iter = function*() {}();
iter.next();


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ var iter =function* () {
following += 1;
}();


assert.throws(Test262Error, function() {
try {
throw undefined;
} catch ([,] = iter) {}
});

iter.next();
assert.sameValue(following, 0, 'Iterator was properly closed.');
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function* g() {
second += 1;
};


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var iter = function*() {
iterations += 1;
}();


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ info: |
8. Return InitializeReferencedBinding(lhs, v).
---*/


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function* g() {
second += 1;
};


var ranCatch = false;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var iter = function*() {
iterations += 1;
}();


var ranCatch = false;

try {
Expand Down
Loading

0 comments on commit 6c733f8

Please sign in to comment.