PageRenderTime 103ms CodeModel.GetById 25ms RepoModel.GetById 3ms app.codeStats 0ms

/pyjs/tests/test032.js

http://pyjamas.googlecode.com/
JavaScript | 18 lines | 14 code | 4 blank | 0 comment | 1 complexity | f4f746f0dcab2d43646dc5c97cb50712 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. function i(x) {
  2. return x;
  3. }
  4. function test_builtins() {
  5. var x = new pyjslib_List([]);
  6. var y = pyjslib_isFunction(x);
  7. var z = pyjslib_map(i, x);
  8. pyjslib_filter(callable, z);
  9. pyjslib_dir(x);
  10. if (pyjslib_hasattr(x, "foo")) {
  11. var foo = pyjslib_getattr(x, "foo");
  12. }
  13. }
  14. test_builtins();