ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Template callsite object does not need temp variable. #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently creates an object like this:

(Object.defineProperty(tmp = CookedArray, 'raw', Object.freeze(RawArray),
Object.freeze(tmp))

This can be done without temp variable

Object.freeze(Object.defineProperties(CookedArray, {
  raw: {
    value: Object.freeze(RawArray)
  }
});

Original issue reported on code.google.com by arv@chromium.org on 11 Nov 2012 at 6:27

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/traceur-compiler/source/detail?r=227b1cc

Original comment by arv@google.com on 13 Nov 2012 at 9:46