mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
caught a close call bug with object comprehensions and not specifying the value
This commit is contained in:
parent
bb5bf7f94f
commit
24408c785a
5 changed files with 22 additions and 19 deletions
|
@ -1,11 +1,12 @@
|
|||
(function(){
|
||||
var __a, __b, globals, name, property;
|
||||
var __a, __b, globals, name;
|
||||
// The first ten global properties.
|
||||
globals = ((function() {
|
||||
__b = []; __a = window;
|
||||
for (name=0; name<__a.length; name++) {
|
||||
property = __a[name];
|
||||
__b.push(name);
|
||||
for (name in __a) {
|
||||
if (__a.hasOwnProperty(name)) {
|
||||
__b.push(name);
|
||||
}
|
||||
}
|
||||
return __b;
|
||||
})()).slice(0, 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue