You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
428 B
Plaintext

2 years ago
NOTE: This is wrong. It checks `this.x ?? x` but `x` should have precedence over `this.x` since it was defined later!
module.exports = function ({
builtins,
$$jsNix$extend
}) {
return {
"const_": function () {
return x => {
return _ => {
return (this?.x ?? x)();
};
};
},
"a": function () {
return (this?.const_ ?? const_)()(1)((this?.a ?? a)());
}
}.a();
};