mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
323 B
26 lines
323 B
/*
|
|
* Comma expression as LHS.
|
|
*/
|
|
|
|
/*===
|
|
2
|
|
0
|
|
===*/
|
|
|
|
function test() {
|
|
var a = [];
|
|
var b = [];
|
|
var a_orig = a;
|
|
var b_orig = b;
|
|
|
|
/* Assignment must go to a_orig */
|
|
(b = a), b[1] = 123;
|
|
print(a_orig.length);
|
|
print(b_orig.length);
|
|
}
|
|
|
|
try {
|
|
test();
|
|
} catch (e) {
|
|
print(e.stack || e);
|
|
}
|
|
|