summaryrefslogtreecommitdiff
path: root/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-09 11:35:37 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-09 11:35:37 -0500
commita01de4a722d088055a7d84d8c691ddd7109edb34 (patch)
treef583c8efd40a3b699261f1166da75a9861d83e7b /test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
parent7b01f9799f99851955f23c18c12e6651c1941022 (diff)
downloadqtdeclarative-testsuites-a01de4a722d088055a7d84d8c691ddd7109edb34.tar.gz
js-beautify: make all indentation consistent (depth & character) (#1409)
Diffstat (limited to 'test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js')
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
index bfd3086c7..bc2707e5c 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
@@ -10,6 +10,7 @@ features: [generators]
---*/
var unreachable = 0;
+
function* g() {
yield 1;
unreachable += 1;
@@ -31,7 +32,9 @@ assert.sameValue(
unreachable, 0, 'statement following `yield` not executed (paused at yield)'
);
-assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
+assert.throws(Test262Error, function() {
+ iter.throw(new Test262Error());
+});
assert.sameValue(
unreachable,