mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
5ce4e1e927
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>; } ```
18 lines
269 B
JavaScript
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
|
|
* }
|
|
*/ }());
|