swank-js/swank-js — pull request #47 by joddie (2012-07-21 23:10:48+00:00)
Title: Improve dot-completion

This patch improves completion of object members.

- `Object.getPropertyNames` throws a fatal error if called with an unboxed string, number or bool, even though these do have prototypes and methods you can call. Putting in a check for `obj instanceof Object` makes dot-completion of method names work properly on these types.

- `Completion.prototype.dotCompletion` shouldn't return numeric indices from string or array for dot completion

Hope these patches are useful! Thanks for making such a useful tool!