Logo
Explore Help
Sign In
cerxes/babel
3
0
Fork 0
You've already forked babel
Code Issues Pull Requests Releases Wiki Activity
babel/packages/babel-plugin-transform-es2015-classes/test/fixtures
History
Stanislav Sysoev 33da726638 Not null check in babel-helper-builder-binary-assignment-operator-visitor (#3647)
Fix: T7537 — https://phabricator.babeljs.io/T7537

When transforming super call in class constructor, part of ast is replaced using method "replaceWithMultiple" here:
https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-es2015-classes/src/vanilla.js#L379

It leads to removing the node (replacing it with null) here:
https://github.com/babel/babel/blob/master/packages/babel-traverse/src/path/replacement.js#L51

But parent ExpressionsStatement is still untouched and when it reaches visitor generated in here
https://github.com/babel/babel/blob/master/packages/babel-helper-builder-binary-assignment-operator-visitor/src/index.js#L18

It blows up because expression is null from previous visitors.
2016-08-31 14:41:49 -04:00
..
exec
move all plugin tests out of babel-core and into their appropriate folders
2015-11-08 23:04:10 -08:00
loose
Fix over-parenthesizing of function expressions
2015-12-24 14:55:51 -08:00
regression
Not null check in babel-helper-builder-binary-assignment-operator-visitor (#3647)
2016-08-31 14:41:49 -04:00
spec
Fix class inheritance in IE <=10 (T3041) (#3527)
2016-08-23 15:08:44 -04:00
Powered by Gitea Version: 1.23.5 Page: 153ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API