File: test.filter.js

package info (click to toggle)
node-webpack 4.43.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 21,220 kB
  • sloc: javascript: 69,992; makefile: 22
file content (9 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding");

module.exports = function(config) {
	// XXX: Disable this test if UglifyJS is used because it does not support ES 2019
	if (config.mode === "production") {
		return false;
	}
	return supportsOptionalCatchBinding();
};