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.
19 lines
229 B
19 lines
229 B
/*
|
|
* Property access as a left-hand side expression (E5 Sections 11.2.1, 11.13,
|
|
* 11.3.1, 11.3.2, 11.4.4, 11.4.5).
|
|
*/
|
|
|
|
/*===
|
|
1
|
|
2
|
|
===*/
|
|
|
|
x = {};
|
|
|
|
x.foo = 1;
|
|
print(x.foo);
|
|
|
|
x['bar'] = 2;
|
|
print(x.bar);
|
|
|
|
/* FIXME: more tests */
|
|
|