We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c5cb79 commit 3cc03e8Copy full SHA for 3cc03e8
src/library_exceptions.js
@@ -254,9 +254,7 @@ var LibraryExceptions = {
254
// Due to inheritance, those types may not precisely match the
255
// type of the thrown object. Find one which matches, and
256
// return the type of the catch block which should be called.
257
- for (var arg in args) {
258
- var caughtType = args[arg];
259
-
+ for (var caughtType of args) {
260
if (caughtType === 0 || caughtType === thrownType) {
261
// Catch all clause matched or exactly the same type is caught
262
break;
0 commit comments