swc/ecmascript/codegen/tests/references/b8705496c9c1ff60.js
강동윤 5ce4e1e927
fix(es/parser): Use correct position for comments (#1527)
swc_ecma_parser:
 - Use correct position for comments in

```ts
function Bar() {
  const [foo, setFoo] = useState(0);
  React.useEffect(() => {
    // @refresh reset
  });
  return <h1>{foo}</h1>;
}
```
2021-03-31 19:30:05 +09:00

18 lines
269 B
JavaScript

(function() {
var a = {
};
with (a){
(1, b)(); // Don't transform it to test()
}
/*
* var obj = {
* test: function() {
* print(obj === this);
* }
* };
* with (obj) {
* test(); // true
* (0, test)(); // false
* }
*/ }());