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.
22 lines
237 B
22 lines
237 B
/*
|
|
* 'in' operator (E5 Section 11.8.7).
|
|
*/
|
|
|
|
/*FIXME*/
|
|
|
|
var obj;
|
|
var arr;
|
|
|
|
/*===
|
|
true false
|
|
===*/
|
|
|
|
obj = {foo:1};
|
|
print('foo' in obj, 'bar' in obj);
|
|
|
|
/*===
|
|
true true false
|
|
===*/
|
|
|
|
arr = [1,2];
|
|
print('0' in arr, '1' in arr, '2' in arr);
|
|
|