webpack/test/helpers/supportsOptionalCatchBindin...

11 lines
163 B
JavaScript
Raw Normal View History

"use strict";
2018-06-04 19:44:30 +08:00
module.exports = function supportsOptionalCatchBinding() {
try {
eval("try {} catch {}");
return true;
2024-07-31 15:37:05 +08:00
} catch (_err) {
2018-06-04 19:44:30 +08:00
return false;
}
};