Skip to content

transform-block-scoping's tdz crashes #6848

@nicolo-ribaudo

Description

@nicolo-ribaudo

Demo

https://runkit.com/embed/wx1vpm3rag2x

Input Code

a = 2;
let a = 4;

Babel/Babylon Configuration (.babelrc, package.json, cli command)

{
  plugins: [
    [require("@babel/plugin-transform-block-scoping"), { tdz: true }]
  ]
}

Current behavior

TypeError: _this.addHelper is not a function
  at Object.addHelper in @babel/plugin-transform-block-scoping/lib/index.js — line 564
  at buildTDZAssert in @babel/plugin-transform-block-scoping/lib/tdz.js — line 21
  at Object.exit in @babel/plugin-transform-block-scoping/lib/tdz.js — line 71
  ...

Your Environment

software version(s)
Babel 7.0.0-beta.32
Babylon
node
npm
Operating System

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimedoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions