On Tue, Oct 22, 2013 at 6:41 AM, André Bargull <[email protected]>wrote:
> Traceur has:
>>
>> function assign(target, source) {
>> var props = $getOwnPropertyNames(source);
>> var p, length = props.length;
>> for (p = 0; p < length; p++) {
>> target[props[p]] = source[props[p]];
>> }
>> return target;
>> }
>>
>> Which is correct.
>>
>
> Almost correct ;-)
>
That was copied verbatim:
https://github.com/google/traceur-compiler/blob/master/src/runtime/runtime.js#L308-L316
Rick
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss