You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Final value of x in the input code is expected to be 1, but is 0 in the output code.
In the output code, the += operator is performed on variable _ so the value of x does not change.
I am using V8 engine to demonstrate the result instead of NodeJS.
Since NodeJS is not an engine but a runtime, the behavior of this in NodeJS does not follow ECMAScript specification.
Final value of x in the input code is 1:
$ d8V8 version 10.9.0
$ d8 input.js1
Actual behavior
$ d8 output.js0
Version
1.3.11 (default SWC playground)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Final value of
x
in the input code is expected to be1
, but is0
in the output code.In the output code, the
+=
operator is performed on variable_
so the value ofx
does not change.Input code
Config
No response
Playground link
https://play.swc.rs/?version=1.3.11&code=H4sIAAAAAAAAAytLLFKoULBVMLDmKgMy04DMxOLKvGQFDU0FWzuFai4FhZKMzGIFPaAqbaBceWJmiYKhgjVQPDk%2Frzg%2FJ1UvJz9do0LTmquWK00DSKEJAwBHDG6mYQAAAA%3D%3D&config=H4sIAAAAAAAAA0WMTQrEIAxG75K1286id5hDBCctFv9IUhgR714tlu7C915ehUMsrBUyshCPS0pU%2FMMKZAOKZZcVTNf6tKEXagYUeScdiiyd%2BZSEJjUQXHRbGSWbQmYSeRHG3T9m66GQfucYKmjJdAc%2F0N7G%2FHPynaLySe0Cj9ke9LUAAAA%3D
Expected behavior
I am using V8 engine to demonstrate the result instead of NodeJS.
Since NodeJS is not an engine but a runtime, the behavior of
this
in NodeJS does not follow ECMAScript specification.Final value of
x
in the input code is1
:Actual behavior
Version
1.3.11 (default SWC playground)
Additional context
No response
The text was updated successfully, but these errors were encountered: