We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6543d38 commit 691d058Copy full SHA for 691d058
1 file changed
tests/HydraScript.IntegrationTests/Samples/complex_exprs.js
@@ -6,8 +6,9 @@ const negSizeStr = -(~obj.arr) as string
6
>>> negSizeStr
7
8
const correctCast = negSizeStr == "-2"
9
-if (correctCast){
10
- let single = [0]
11
- let x = single[0] = obj.arr[2 - 2]
+let num = correctCast ? -2 : 0
+if (correctCast) {
+ let single = [num]
12
+ let x = single[0] = num = obj.arr[2 - 2]
13
>>> x
14
}
0 commit comments