💻
How are you using Babel?
Programmatic API (babel.transform, babel.parse)
Input code
export const __proto__ = null;
import { __proto__ as p } from "./index.js";
console.log(p);
Playground
Configuration file name
No response
Configuration
No response
Current and expected behavior
run node index.js
Expected behavior:
null should be printed.
Actual behavior:
undefined is printed.
Environment
latest version
Possible solution
Use [[Define]] semantic for __proto__ export name.
Additional context
No response
💻
How are you using Babel?
Programmatic API (
babel.transform,babel.parse)Input code
Playground
Configuration file name
No response
Configuration
No response
Current and expected behavior
run
node index.jsExpected behavior:
nullshould be printed.Actual behavior:
undefinedis printed.Environment
latest version
Possible solution
Use
[[Define]]semantic for__proto__export name.Additional context
No response