/pyjs/tests/test032.js
http://pyjamas.googlecode.com/ · JavaScript · 18 lines · 14 code · 4 blank · 0 comment · 1 complexity · f4f746f0dcab2d43646dc5c97cb50712 MD5 · raw file
- function i(x) {
- return x;
- }
- function test_builtins() {
- var x = new pyjslib_List([]);
- var y = pyjslib_isFunction(x);
- var z = pyjslib_map(i, x);
- pyjslib_filter(callable, z);
- pyjslib_dir(x);
- if (pyjslib_hasattr(x, "foo")) {
- var foo = pyjslib_getattr(x, "foo");
- }
- }
- test_builtins();