mirror of https://github.com/webpack/webpack.git
11 lines
217 B
JavaScript
11 lines
217 B
JavaScript
|
module.exports = function supportsNullishCoalescing() {
|
||
|
try {
|
||
|
var f = eval(
|
||
|
"(function f() { var x = null; x ??= true; x &&= true; return x ||= false; })"
|
||
|
);
|
||
|
return f();
|
||
|
} catch (e) {
|
||
|
return false;
|
||
|
}
|
||
|
};
|