(test-ps-js object-literals-5
(with-slots (a b c) this
(+ a b c))
- "this.a + this.b + this.c;")
+ "(this).a + (this).b + (this).c;")
(test-ps-js regular-expression-literals-1
(regex "foobar")
(test-ps-js assignment-1
(setf a 1)
- "a = 1")
+ "a = 1;")
(test-ps-js assignment-2
(setf a 2 b 3 c 4 x (+ a b c))
(test-ps-js assignment-3
(setf a (1+ a))
- "a++")
+ "a++;")
(test-ps-js assignment-4
(setf a (+ a 2 3 4 a))
- "a += 2 + 3 + 4 + a")
+ "a += 2 + 3 + 4 + a;")
(test-ps-js assignment-5
(setf a (- 1 a))
- "a = 1 - a")
+ "a = 1 - a;")
(test-ps-js single-argument-statements-1
(return 1)