* Fix crash on bad namespace parse `global` inside a class body is parsed as a module declaration, and in the following example has no body: ```ts class C { global x } ``` `x` is parsed as a separate ExpressionStatement. This caused a crash in emit because the code didn't expect a module declaration with no body. * inline node.body variable * fix missed references to body
5 lines
59 B
TypeScript
5 lines
59 B
TypeScript
// should not crash - from #35717
|
|
class C {
|
|
global x
|
|
}
|