traceur-rb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (410) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +2 -2
  3. data/lib/js/compile.js +7 -15
  4. data/lib/traceur.rb +2 -1
  5. data/lib/traceur/compilation_error.rb +27 -0
  6. data/lib/traceur/compiler.rb +4 -1
  7. data/lib/traceur/configuration.rb +1 -1
  8. data/lib/traceur/node/runner.rb +1 -1
  9. data/lib/traceur/version.rb +1 -1
  10. data/spec/examples/syntax_error.js +3 -0
  11. data/spec/integration/examples_spec.rb +6 -0
  12. data/vendor/node_modules/traceur/LICENSE +202 -0
  13. data/vendor/node_modules/traceur/README.md +5 -5
  14. data/vendor/node_modules/traceur/bin/traceur-runtime.js +1392 -623
  15. data/vendor/node_modules/traceur/bin/traceur.js +24749 -17990
  16. data/vendor/node_modules/traceur/node_modules/.bin/semver +2 -2
  17. data/vendor/node_modules/traceur/node_modules/commander/History.md +222 -0
  18. data/vendor/node_modules/traceur/node_modules/commander/Readme.md +127 -35
  19. data/vendor/node_modules/traceur/node_modules/commander/index.js +261 -93
  20. data/vendor/node_modules/traceur/node_modules/commander/package.json +41 -9
  21. data/vendor/node_modules/traceur/node_modules/glob/LICENSE +15 -0
  22. data/vendor/node_modules/traceur/node_modules/glob/README.md +357 -0
  23. data/vendor/node_modules/traceur/node_modules/glob/common.js +177 -0
  24. data/vendor/node_modules/traceur/node_modules/glob/glob.js +649 -0
  25. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/.eslintrc +17 -0
  26. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/LICENSE +15 -0
  27. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/README.md +37 -0
  28. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/inflight.js +44 -0
  29. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +15 -0
  30. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +36 -0
  31. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +34 -0
  32. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +51 -0
  33. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +33 -0
  34. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
  35. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inflight/test.js +97 -0
  36. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/LICENSE +16 -0
  37. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/README.md +42 -0
  38. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits.js +1 -0
  39. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
  40. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +33 -0
  41. data/vendor/node_modules/traceur/node_modules/glob/node_modules/inherits/test.js +25 -0
  42. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.npmignore +1 -0
  43. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/.travis.yml +4 -0
  44. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/LICENSE +23 -0
  45. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/README.md +216 -0
  46. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/benchmark.js +15 -0
  47. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1181 -0
  48. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +845 -0
  49. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +2 -0
  50. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +3 -0
  51. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +121 -0
  52. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
  53. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
  54. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
  55. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/collections → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
  56. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
  57. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
  58. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
  59. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
  60. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +73 -0
  61. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
  62. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/url2 → glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +1 -1
  63. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
  64. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
  65. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
  66. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
  67. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +83 -0
  68. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
  69. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +75 -0
  70. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +32 -0
  71. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +1075 -0
  72. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +182 -0
  73. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +9 -0
  74. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +10 -0
  75. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +24 -0
  76. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +15 -0
  77. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +16 -0
  78. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +10 -0
  79. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +13 -0
  80. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +7 -0
  81. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +50 -0
  82. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +60 -0
  83. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/basic.js +399 -0
  84. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/brace-expand.js +45 -0
  85. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/defaults.js +274 -0
  86. data/vendor/node_modules/traceur/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
  87. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +27 -0
  88. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/README.md +51 -0
  89. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
  90. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
  91. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +34 -0
  92. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
  93. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
  94. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/once.js +21 -0
  95. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/package.json +42 -0
  96. data/vendor/node_modules/traceur/node_modules/glob/node_modules/once/test/once.js +23 -0
  97. data/vendor/node_modules/traceur/node_modules/glob/package.json +72 -0
  98. data/vendor/node_modules/traceur/node_modules/glob/sync.js +409 -0
  99. data/vendor/node_modules/traceur/node_modules/rsvp/.release.json +17 -0
  100. data/vendor/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +165 -0
  101. data/vendor/node_modules/traceur/node_modules/rsvp/LICENSE +19 -0
  102. data/vendor/node_modules/traceur/node_modules/rsvp/README.md +364 -0
  103. data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1671 -0
  104. data/vendor/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
  105. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +66 -0
  106. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +50 -0
  107. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/-internal.js +265 -0
  108. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +71 -0
  109. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/all.js +15 -0
  110. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +109 -0
  111. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/config.js +28 -0
  112. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
  113. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +125 -0
  114. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +201 -0
  115. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/filter.js +120 -0
  116. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +124 -0
  117. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
  118. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
  119. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/map.js +99 -0
  120. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
  121. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +51 -0
  122. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
  123. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +52 -0
  124. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
  125. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
  126. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
  127. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/race.js +15 -0
  128. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
  129. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
  130. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +46 -0
  131. data/vendor/node_modules/traceur/node_modules/rsvp/lib/rsvp/utils.js +39 -0
  132. data/vendor/node_modules/traceur/node_modules/rsvp/package.json +100 -0
  133. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/README.md +9 -0
  134. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/bower.json +22 -0
  135. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/composer.json +18 -0
  136. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/package.json +52 -0
  137. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.amd.js +1607 -0
  138. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.js +1566 -0
  139. data/vendor/node_modules/traceur/node_modules/rsvp/rsvp.js/rsvp.min.js +26 -0
  140. data/vendor/node_modules/traceur/node_modules/rsvp/vertx.js +1 -0
  141. data/vendor/node_modules/traceur/node_modules/semver/bin/semver +2 -2
  142. data/vendor/node_modules/traceur/node_modules/semver/package.json +4 -3
  143. data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js +7 -0
  144. data/vendor/node_modules/traceur/node_modules/semver/semver.browser.js.gz +0 -0
  145. data/vendor/node_modules/traceur/node_modules/semver/semver.js +7 -0
  146. data/vendor/node_modules/traceur/node_modules/semver/semver.min.js +1 -1
  147. data/vendor/node_modules/traceur/node_modules/semver/semver.min.js.gz +0 -0
  148. data/vendor/node_modules/traceur/node_modules/semver/test/index.js +8 -4
  149. data/vendor/node_modules/traceur/node_modules/semver/test/ltr.js +2 -1
  150. data/vendor/node_modules/traceur/node_modules/source-map-support/.npmignore +1 -0
  151. data/vendor/node_modules/traceur/node_modules/{q-io/node_modules/mime/LICENSE → source-map-support/LICENSE.md} +7 -5
  152. data/vendor/node_modules/traceur/node_modules/source-map-support/README.md +165 -0
  153. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
  154. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/index.html +6 -0
  155. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/require.js +36 -0
  156. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.coffee +13 -0
  157. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.js +24 -0
  158. data/vendor/node_modules/traceur/node_modules/source-map-support/amd-test/script.map +10 -0
  159. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
  160. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/index.html +6 -0
  161. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.coffee +12 -0
  162. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.js +25 -0
  163. data/vendor/node_modules/traceur/node_modules/source-map-support/browser-test/script.map +10 -0
  164. data/vendor/node_modules/traceur/node_modules/source-map-support/build.js +69 -0
  165. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/index.html +6 -0
  166. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.coffee +12 -0
  167. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.js +25 -0
  168. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/script.map +10 -0
  169. data/vendor/node_modules/traceur/node_modules/source-map-support/header-test/server.js +45 -0
  170. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +2 -0
  171. data/vendor/node_modules/traceur/node_modules/{q-io → source-map-support/node_modules/source-map}/.travis.yml +1 -0
  172. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +121 -0
  173. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
  174. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +166 -0
  175. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/README.md +434 -0
  176. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +56 -0
  177. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +152 -0
  178. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  179. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +18 -0
  180. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +8 -0
  181. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  182. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +21 -0
  183. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +8 -0
  184. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +3 -0
  185. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +8 -0
  186. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +97 -0
  187. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  188. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +42 -0
  189. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  190. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +478 -0
  191. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +380 -0
  192. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +371 -0
  193. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +205 -0
  194. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  195. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
  196. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  197. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +36 -0
  198. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +37 -0
  199. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
  200. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +62 -0
  201. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +26 -0
  202. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +104 -0
  203. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  204. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +35 -0
  205. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  206. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  207. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +451 -0
  208. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +417 -0
  209. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +365 -0
  210. data/vendor/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +161 -0
  211. data/vendor/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
  212. data/vendor/node_modules/traceur/node_modules/source-map-support/source-map-support.js +381 -0
  213. data/vendor/node_modules/traceur/node_modules/source-map-support/test.js +359 -0
  214. data/vendor/node_modules/traceur/package.json +234 -20
  215. data/vendor/node_modules/traceur/src/node/NodeCompiler.js +78 -0
  216. data/vendor/node_modules/traceur/src/node/System.js +32 -5
  217. data/vendor/node_modules/traceur/src/node/api.js +28 -93
  218. data/vendor/node_modules/traceur/src/node/command.js +84 -19
  219. data/vendor/node_modules/traceur/src/node/compileAllJsFilesInDir.js +40 -0
  220. data/vendor/node_modules/traceur/src/node/interpreter.js +11 -8
  221. data/vendor/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
  222. data/vendor/node_modules/traceur/src/node/require.js +7 -21
  223. data/vendor/node_modules/traceur/src/node/to-amd-compiler.js +2 -7
  224. data/vendor/node_modules/traceur/src/node/to-closure-compiler.js +28 -0
  225. data/vendor/node_modules/traceur/src/node/to-commonjs-compiler.js +3 -7
  226. data/vendor/node_modules/traceur/src/node/traceur.js +1 -1
  227. metadata +196 -190
  228. data/vendor/node_modules/traceur/node_modules/q-io/.npmignore +0 -1
  229. data/vendor/node_modules/traceur/node_modules/q-io/CHANGES.md +0 -122
  230. data/vendor/node_modules/traceur/node_modules/q-io/LICENSE +0 -19
  231. data/vendor/node_modules/traceur/node_modules/q-io/README.md +0 -928
  232. data/vendor/node_modules/traceur/node_modules/q-io/buffer-stream.js +0 -59
  233. data/vendor/node_modules/traceur/node_modules/q-io/coverage-report.js +0 -44
  234. data/vendor/node_modules/traceur/node_modules/q-io/deprecate.js +0 -51
  235. data/vendor/node_modules/traceur/node_modules/q-io/fs-boot.js +0 -307
  236. data/vendor/node_modules/traceur/node_modules/q-io/fs-common.js +0 -499
  237. data/vendor/node_modules/traceur/node_modules/q-io/fs-mock.js +0 -547
  238. data/vendor/node_modules/traceur/node_modules/q-io/fs-root.js +0 -105
  239. data/vendor/node_modules/traceur/node_modules/q-io/fs.js +0 -355
  240. data/vendor/node_modules/traceur/node_modules/q-io/fs2http.js +0 -65
  241. data/vendor/node_modules/traceur/node_modules/q-io/http-apps.js +0 -152
  242. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/chain.js +0 -24
  243. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/content.js +0 -93
  244. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/cookie.js +0 -154
  245. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/decorators.js +0 -178
  246. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/fs.js +0 -417
  247. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/html.js +0 -58
  248. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/json.js +0 -78
  249. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/negotiate.js +0 -120
  250. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/proxy.js +0 -27
  251. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/redirect.js +0 -209
  252. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/route.js +0 -125
  253. data/vendor/node_modules/traceur/node_modules/q-io/http-apps/status.js +0 -175
  254. data/vendor/node_modules/traceur/node_modules/q-io/http-cookie.js +0 -75
  255. data/vendor/node_modules/traceur/node_modules/q-io/http.js +0 -378
  256. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/.npmignore +0 -11
  257. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/CHANGES.md +0 -78
  258. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/LICENSE.md +0 -21
  259. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/README.md +0 -1285
  260. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/collections.js +0 -22
  261. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/dict.js +0 -142
  262. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-map.js +0 -57
  263. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/fast-set.js +0 -183
  264. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-collection.js +0 -261
  265. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-map.js +0 -186
  266. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-order.js +0 -55
  267. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/generic-set.js +0 -59
  268. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/heap.js +0 -236
  269. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/iterator.js +0 -371
  270. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/list.js +0 -435
  271. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/array-changes.js +0 -247
  272. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/map-changes.js +0 -147
  273. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/property-changes.js +0 -448
  274. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/listen/range-changes.js +0 -139
  275. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-map.js +0 -79
  276. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/lru-set.js +0 -142
  277. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/map.js +0 -60
  278. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/multi-map.js +0 -41
  279. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/package.json +0 -12
  280. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync +0 -7
  281. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/sync.patch +0 -48
  282. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/node_modules/weak-map/weak-map.js +0 -590
  283. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/package.json +0 -49
  284. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/set.js +0 -173
  285. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-array.js +0 -274
  286. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-function.js +0 -59
  287. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-object.js +0 -538
  288. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim-regexp.js +0 -14
  289. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/shim.js +0 -6
  290. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-map.js +0 -49
  291. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array-set.js +0 -51
  292. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-array.js +0 -269
  293. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-map.js +0 -61
  294. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/sorted-set.js +0 -736
  295. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/tree-log.js +0 -40
  296. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/collections/weak-map.js +0 -1
  297. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/README.md +0 -66
  298. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/mime.js +0 -114
  299. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/package.json +0 -35
  300. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/test.js +0 -84
  301. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/mime.types +0 -1588
  302. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mime/types/node.types +0 -77
  303. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/CHANGES +0 -15
  304. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/LICENSE +0 -19
  305. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/README +0 -96
  306. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/lib/mimeparse.js +0 -166
  307. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/mimeparse/package.json +0 -43
  308. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/CONTRIBUTING.md +0 -40
  309. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/LICENSE +0 -19
  310. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/README.md +0 -813
  311. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/compare-with-callbacks.js +0 -71
  312. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/benchmark/scenarios.js +0 -36
  313. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/package.json +0 -93
  314. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/q.js +0 -1937
  315. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/q/queue.js +0 -35
  316. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/.gitmodules +0 -6
  317. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/History.md +0 -36
  318. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Makefile +0 -7
  319. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/Readme.md +0 -38
  320. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/benchmark.js +0 -32
  321. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/examples.js +0 -39
  322. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/index.js +0 -2
  323. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/lib/querystring.js +0 -123
  324. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/package.json +0 -19
  325. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.gitmodules +0 -3
  326. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/.npmignore +0 -3
  327. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/History.md +0 -128
  328. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Makefile +0 -53
  329. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/Readme.md +0 -61
  330. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/bin/expresso +0 -856
  331. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/api.html +0 -1080
  332. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.html +0 -377
  333. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/index.md +0 -290
  334. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/foot.html +0 -3
  335. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/docs/layout/head.html +0 -42
  336. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/bar.js +0 -4
  337. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/lib/foo.js +0 -16
  338. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/package.json +0 -12
  339. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/assert.test.js +0 -91
  340. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/async.test.js +0 -12
  341. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/bar.test.js +0 -13
  342. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/foo.test.js +0 -14
  343. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/http.test.js +0 -146
  344. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/async.test.js +0 -39
  345. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/expresso/test/serial/http.test.js +0 -48
  346. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/.gitmodules +0 -3
  347. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/History.md +0 -22
  348. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Makefile +0 -6
  349. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/Readme.md +0 -248
  350. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/examples/runner.js +0 -53
  351. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/index.js +0 -2
  352. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/eql.js +0 -91
  353. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/lib/should.js +0 -548
  354. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/package.json +0 -8
  355. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/support/should/test/should.test.js +0 -358
  356. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/qs/test/querystring.test.js +0 -133
  357. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/.npmignore +0 -3
  358. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/LICENSE.md +0 -20
  359. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/README.md +0 -33
  360. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/package.json +0 -37
  361. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/test/url2-spec.js +0 -125
  362. data/vendor/node_modules/traceur/node_modules/q-io/node_modules/url2/url2.js +0 -151
  363. data/vendor/node_modules/traceur/node_modules/q-io/package.json +0 -51
  364. data/vendor/node_modules/traceur/node_modules/q-io/reader.js +0 -133
  365. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/boot-directory-spec.js +0 -47
  366. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/contains-spec.js +0 -11
  367. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/fixtures/hello.txt +0 -1
  368. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/issues/1-spec.js +0 -33
  369. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/make-tree-spec.js +0 -92
  370. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/append-spec.js +0 -41
  371. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/copy-tree-spec.js +0 -57
  372. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/fixture/hello.txt +0 -1
  373. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/link-spec.js +0 -70
  374. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/make-tree-spec.js +0 -109
  375. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/merge-spec.js +0 -67
  376. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/move-spec.js +0 -219
  377. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/object-spec.js +0 -20
  378. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/range-spec.js +0 -26
  379. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/read-spec.js +0 -40
  380. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-directory-spec.js +0 -37
  381. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/remove-tree-spec.js +0 -39
  382. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/root-spec.js +0 -32
  383. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/stat-spec.js +0 -26
  384. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/symbolic-link-spec.js +0 -86
  385. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/working-directory-spec.js +0 -31
  386. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/mock/write-spec.js +0 -73
  387. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.js +0 -23
  388. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/range-spec.txt +0 -1
  389. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/read-spec.js +0 -22
  390. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/relative-spec.js +0 -25
  391. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/reroot-spec.js +0 -45
  392. data/vendor/node_modules/traceur/node_modules/q-io/spec/fs/write-spec.js +0 -38
  393. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/cookie-spec.js +0 -52
  394. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/directory-list-spec.js +0 -86
  395. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/01234.txt +0 -1
  396. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/1234.txt +0 -1
  397. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/5678.txt +0 -0
  398. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/fixtures/9012/3456.txt +0 -0
  399. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/hosts-spec.js +0 -49
  400. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/interpret-range-spec.js +0 -47
  401. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/partial-range-spec.js +0 -186
  402. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/proxy-spec.js +0 -82
  403. data/vendor/node_modules/traceur/node_modules/q-io/spec/http-apps/symbolic-link-spec.js +0 -110
  404. data/vendor/node_modules/traceur/node_modules/q-io/spec/http/agent-spec.js +0 -96
  405. data/vendor/node_modules/traceur/node_modules/q-io/spec/http/basic-spec.js +0 -96
  406. data/vendor/node_modules/traceur/node_modules/q-io/spec/lib/jasmine-promise.js +0 -42
  407. data/vendor/node_modules/traceur/node_modules/q-io/writer.js +0 -111
  408. data/vendor/node_modules/traceur/src/node/compile-single-file.js +0 -69
  409. data/vendor/node_modules/traceur/src/node/compiler.js +0 -116
  410. data/vendor/node_modules/traceur/src/node/inline-module.js +0 -149
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDdiZWFhN2Q5NjZiMTYyMTgyN2I5NWM5YzUyYjcxNTk2NDBiOWMwMQ==
4
+ N2Y5YmM4Y2FlODFkZGVhMzA4MDQ0NmU3NzY3YzU5ZGMwMTI2NGVmYg==
5
5
  data.tar.gz: !binary |-
6
- YzZiOTQ3NmY0NTRlMjczN2I0NzdmMGIwNWUwZTljYmE5OTk1MTBlMA==
6
+ MzY4YzY3ZDMxZmY4MGEwMzNmNmRhYzcyYmE4NTY0Y2I5MzJjODNkMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDM3NjcwZmE1MWViOTg0NzU2YzJiYzA3NzI4OWEzMzg2ZDljZmI0YzQyNTQ4
10
- ZjdmMjg3MTAxYzI5MjUyMWFhZmVlODkxZTI5MDg2ZjViMWQ1MTM3MTEwN2Vj
11
- MDgzZGMxMDkxNTBkZjFhZGIzNjRiMzljNDBlYjI0NzZkMGNiMjc=
9
+ YjA3NmNmYzQ5OTgwYjAxZDU0ODBjNmMzMjk4ZDc5OWJhOGQxYjc2ZjY2NzM1
10
+ Zjc1MjUwYjgwOGY1ZWUyZjU1MjMzMTQ5YjQyMzhkODNkZjRkMzdiN2U5ZmFk
11
+ Zjc3NWU5NzdkNGNlZjhhOTMwYzYxMDY4MGFjNjljZjg1MGEyYzc=
12
12
  data.tar.gz: !binary |-
13
- ODI2NzJkN2VkNWJjNDdmMzhjN2FiZGM0YWUwNmRhOGIyY2FmMGNlYzcxZjI5
14
- NzJjODRhZTI1ZTI2NjE0YjQ5YTEzZGQ1MTkzOGM0ZWZiMjk3NjYyZDE2NTBl
15
- MDc2ZWZkYzk4N2M1Njg2NDA1ZjcxYWRlODAxNjMwNDUzZTUzYmU=
13
+ ODgzNTQxYTc3M2QxZDBiZGZjOWQ2MDJiNTE2YWY4Zjc3NzcwYTU0MWQ4OWM4
14
+ NDBhOTU3Yzg1MjlhYzE1OGQ5NmU1MDUxOGUxYzU1OWVhZjc0MjUxNzU5NDVk
15
+ NzMxNDliMmQyZGRiODI2MjFhZTk5YzJiOTQyNjA5YzJmNDAwMmQ=
data/README.md CHANGED
@@ -38,9 +38,9 @@ require 'traceur'
38
38
  compiled_source = Traceur.compile(es6_source, additional_compilation_flags)
39
39
  ```
40
40
 
41
- simmilarly, you can compile a file using:
41
+ similarly, you can compile a file using:
42
42
 
43
- ```
43
+ ```ruby
44
44
  require 'traceur'
45
45
 
46
46
  compiled_source = Traceur.compile_file(path_to_es6_file, additional_compilation_flags)
data/lib/js/compile.js CHANGED
@@ -11,21 +11,13 @@ var customOptions = JSON.parse(process.argv[4]);
11
11
 
12
12
  var contents = fs.readFileSync(infile).toString();
13
13
 
14
- var options = {
15
- filename: infile
16
- };
14
+ var result;
17
15
 
18
- for (var key in customOptions) {
19
- if (customOptions.hasOwnProperty(key)) {
20
- options[key] = customOptions[key];
21
- }
16
+ try {
17
+ result = traceur.compile(contents, customOptions, customOptions.filename, customOptions.filename);
18
+ } catch (error) {
19
+ console.error(error.join("\n"));
20
+ process.exit(1);
22
21
  }
23
22
 
24
- var result = traceur.compile(contents, options);
25
-
26
- if (result.error) {
27
- throw result.error;
28
- }
29
-
30
- fs.writeFileSync(outfile, result.js);
31
- fs.writeFileSync(outfile + '.map', result.sourceMap);
23
+ fs.writeFileSync(outfile, result);
data/lib/traceur.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "traceur/version"
2
2
  require "traceur/configuration"
3
+ require "traceur/compilation_error"
3
4
  require "traceur/compilation_options"
4
5
  require "traceur/node"
5
6
  require "traceur/compiler"
@@ -10,7 +11,7 @@ module Traceur
10
11
  end
11
12
 
12
13
  def self.compile_file(source_file, opts = {})
13
- compiler.compile_file(File.new(source_file), opts)
14
+ compiler.compile_file(File.new(source_file), {filename: source_file}.merge(opts))
14
15
  end
15
16
 
16
17
  def self.config
@@ -0,0 +1,27 @@
1
+ module Traceur
2
+ class CompilationError < StandardError
3
+ attr_reader :errors
4
+
5
+ def initialize(errors)
6
+ @errors = errors
7
+ super(errors.map(&:to_s).join("\n"))
8
+ end
9
+
10
+ def self.parse(error_string)
11
+ lines = error_string.split("\n")
12
+
13
+ errors = lines.map do |line|
14
+ file, line, column, message = line.split(':')
15
+ Error.new(file.strip, line.to_i, column.to_i, message.strip)
16
+ end
17
+
18
+ new(errors)
19
+ end
20
+
21
+ Error = Struct.new(:file, :line, :column, :message) do
22
+ def to_s
23
+ "#{file}:#{line}:#{column}: #{message}"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -15,7 +15,10 @@ module Traceur
15
15
  def compile_file(infile, opts = {})
16
16
  options = default_compilation_options.merge(opts)
17
17
  outfile = Tempfile.new('out.js')
18
- runner.run(arguments: [compile_script_path, infile.path, outfile.path, options.to_json])
18
+ runner.run(
19
+ arguments: [compile_script_path, infile.path, outfile.path, options.to_json],
20
+ on_error: ->(r) { raise CompilationError.parse(r.stderr) }
21
+ ).stdout
19
22
  outfile.read
20
23
  end
21
24
 
@@ -30,7 +30,7 @@ module Traceur
30
30
  def default_compilation_options
31
31
  @default_compilation_options ||= CompilationOptions.new(
32
32
  modules: :inline,
33
- source_map: true,
33
+ source_maps: :inline,
34
34
  )
35
35
  end
36
36
 
@@ -12,7 +12,7 @@ module Traceur
12
12
  def run(opts = {})
13
13
  input = opts.fetch(:input) { "" }
14
14
  arguments = opts.fetch(:arguments) { [] }
15
- on_error = opts.fetch(:on_error) { ->{} }
15
+ on_error = opts.fetch(:on_error) { ->(r) {} }
16
16
 
17
17
  Open3.popen3(env, binary, *arguments) do |stdin, stdout, stderr, wait_thr|
18
18
  stdin.print input
@@ -1,3 +1,3 @@
1
1
  module Traceur
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,3 @@
1
+ // Invalid use of arrow function
2
+
3
+ $(=> console.log('oh noes!'))
@@ -25,4 +25,10 @@ describe "Integration tests" do
25
25
 
26
26
  expect(eval_js(compiled)).to eq("Hello world!\n")
27
27
  end
28
+
29
+ it "raises an error when compiling a file with syntax errors" do
30
+ expect {
31
+ p Traceur.compile_file(example_file_path('syntax_error.js'))
32
+ }.to raise_error(Traceur::CompilationError)
33
+ end
28
34
  end
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2011
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -1,6 +1,6 @@
1
- [![Build Status](https://travis-ci.org/google/traceur-compiler.png)](https://travis-ci.org/google/traceur-compiler)
1
+ [![Build Status](https://travis-ci.org/google/traceur-compiler.svg)](https://travis-ci.org/google/traceur-compiler)
2
2
 
3
- <img src="https://raw.github.com/google/traceur-compiler/master/logo/tc.png" alt="Traceur logo" width="200px">
3
+ <img src="https://google.github.com/traceur-compiler/logo/tc.svg" alt="Traceur logo" width="200px">
4
4
  ## What is Traceur?
5
5
 
6
6
  Traceur is a JavaScript.next-to-JavaScript-of-today compiler that allows you to
@@ -11,7 +11,7 @@ better code. Traceur allows you to try out new and proposed
11
11
  today, helping you say what you mean in your code while informing the standards process.
12
12
 
13
13
  JavaScript's evolution needs your input.
14
- [Try](https://github.com/google/traceur-compiler/wiki/GettingStarted) out the
14
+ [Try](https://github.com/google/traceur-compiler/wiki/Getting-Started) out the
15
15
  new language features.
16
16
  [Tell us](http://groups.google.com/group/traceur-compiler-discuss)
17
17
  how they work for you and what's still causing you to use more boilerplate and
@@ -20,10 +20,10 @@ how they work for you and what's still causing you to use more boilerplate and
20
20
  ## What now? What can Traceur do for me?
21
21
 
22
22
  Read the
23
- [Getting Started](https://github.com/google/traceur-compiler/wiki/GettingStarted)
23
+ [Getting Started](https://github.com/google/traceur-compiler/wiki/Getting-Started)
24
24
  page to get up and running. You can use some language features right now and
25
25
  even try it out in your browser
26
- [here](http://google.github.io/traceur-compiler/demo/repl.html).
26
+ [here](https://google.github.io/traceur-compiler/demo/repl.html).
27
27
  Just type in some code and see what Traceur produces. For an idea of what is
28
28
  available and what we have in the pipeline, see the
29
29
  [Language Features](https://github.com/google/traceur-compiler/wiki/LanguageFeatures)
@@ -1,7 +1,7 @@
1
1
  (function(global) {
2
2
  'use strict';
3
3
  if (global.$traceurRuntime) {
4
- return;
4
+ return ;
5
5
  }
6
6
  var $Object = Object;
7
7
  var $TypeError = TypeError;
@@ -25,13 +25,6 @@
25
25
  writable: true
26
26
  };
27
27
  }
28
- var types = {
29
- void: function voidType() {},
30
- any: function any() {},
31
- string: function string() {},
32
- number: function number() {},
33
- boolean: function boolean() {}
34
- };
35
28
  var method = nonEnum;
36
29
  var counter = 0;
37
30
  function newUniqueString() {
@@ -42,16 +35,19 @@
42
35
  var symbolDataProperty = newUniqueString();
43
36
  var symbolValues = $create(null);
44
37
  var privateNames = $create(null);
38
+ function isPrivateName(s) {
39
+ return privateNames[s];
40
+ }
45
41
  function createPrivateName() {
46
42
  var s = newUniqueString();
47
43
  privateNames[s] = true;
48
44
  return s;
49
45
  }
50
- function isSymbol(symbol) {
46
+ function isShimSymbol(symbol) {
51
47
  return typeof symbol === 'object' && symbol instanceof SymbolValue;
52
48
  }
53
49
  function typeOf(v) {
54
- if (isSymbol(v))
50
+ if (isShimSymbol(v))
55
51
  return 'symbol';
56
52
  return typeof v;
57
53
  }
@@ -130,59 +126,52 @@
130
126
  getOwnHashObject(object);
131
127
  return $seal.apply(this, arguments);
132
128
  }
133
- Symbol.iterator = Symbol();
134
129
  freeze(SymbolValue.prototype);
130
+ function isSymbolString(s) {
131
+ return symbolValues[s] || privateNames[s];
132
+ }
135
133
  function toProperty(name) {
136
- if (isSymbol(name))
134
+ if (isShimSymbol(name))
137
135
  return name[symbolInternalProperty];
138
136
  return name;
139
137
  }
140
- function getOwnPropertyNames(object) {
138
+ function removeSymbolKeys(array) {
141
139
  var rv = [];
142
- var names = $getOwnPropertyNames(object);
143
- for (var i = 0; i < names.length; i++) {
144
- var name = names[i];
145
- if (!symbolValues[name] && !privateNames[name])
146
- rv.push(name);
140
+ for (var i = 0; i < array.length; i++) {
141
+ if (!isSymbolString(array[i])) {
142
+ rv.push(array[i]);
143
+ }
147
144
  }
148
145
  return rv;
149
146
  }
150
- function getOwnPropertyDescriptor(object, name) {
151
- return $getOwnPropertyDescriptor(object, toProperty(name));
147
+ function getOwnPropertyNames(object) {
148
+ return removeSymbolKeys($getOwnPropertyNames(object));
149
+ }
150
+ function keys(object) {
151
+ return removeSymbolKeys($keys(object));
152
152
  }
153
153
  function getOwnPropertySymbols(object) {
154
154
  var rv = [];
155
155
  var names = $getOwnPropertyNames(object);
156
156
  for (var i = 0; i < names.length; i++) {
157
157
  var symbol = symbolValues[names[i]];
158
- if (symbol)
158
+ if (symbol) {
159
159
  rv.push(symbol);
160
+ }
160
161
  }
161
162
  return rv;
162
163
  }
164
+ function getOwnPropertyDescriptor(object, name) {
165
+ return $getOwnPropertyDescriptor(object, toProperty(name));
166
+ }
163
167
  function hasOwnProperty(name) {
164
168
  return $hasOwnProperty.call(this, toProperty(name));
165
169
  }
166
170
  function getOption(name) {
167
- return global.traceur && global.traceur.options[name];
168
- }
169
- function setProperty(object, name, value) {
170
- var sym,
171
- desc;
172
- if (isSymbol(name)) {
173
- sym = name;
174
- name = name[symbolInternalProperty];
175
- }
176
- object[name] = value;
177
- if (sym && (desc = $getOwnPropertyDescriptor(object, name)))
178
- $defineProperty(object, name, {enumerable: false});
179
- return value;
171
+ return global.$traceurRuntime.options[name];
180
172
  }
181
173
  function defineProperty(object, name, descriptor) {
182
- if (isSymbol(name)) {
183
- if (descriptor.enumerable) {
184
- descriptor = $create(descriptor, {enumerable: {value: false}});
185
- }
174
+ if (isShimSymbol(name)) {
186
175
  name = name[symbolInternalProperty];
187
176
  }
188
177
  $defineProperty(object, name, descriptor);
@@ -196,14 +185,14 @@
196
185
  $defineProperty(Object, 'freeze', {value: freeze});
197
186
  $defineProperty(Object, 'preventExtensions', {value: preventExtensions});
198
187
  $defineProperty(Object, 'seal', {value: seal});
199
- Object.getOwnPropertySymbols = getOwnPropertySymbols;
188
+ $defineProperty(Object, 'keys', {value: keys});
200
189
  }
201
190
  function exportStar(object) {
202
191
  for (var i = 1; i < arguments.length; i++) {
203
192
  var names = $getOwnPropertyNames(arguments[i]);
204
193
  for (var j = 0; j < names.length; j++) {
205
194
  var name = names[j];
206
- if (privateNames[name])
195
+ if (isSymbolString(name))
207
196
  continue;
208
197
  (function(mod, name) {
209
198
  $defineProperty(object, name, {
@@ -225,38 +214,68 @@
225
214
  throw $TypeError();
226
215
  return $Object(x);
227
216
  }
228
- function assertObject(x) {
229
- if (!isObject(x))
230
- throw $TypeError(x + ' is not an Object');
231
- return x;
217
+ function checkObjectCoercible(argument) {
218
+ if (argument == null) {
219
+ throw new TypeError('Value cannot be converted to an Object');
220
+ }
221
+ return argument;
222
+ }
223
+ function polyfillSymbol(global, Symbol) {
224
+ if (!global.Symbol) {
225
+ global.Symbol = Symbol;
226
+ Object.getOwnPropertySymbols = getOwnPropertySymbols;
227
+ }
228
+ if (!global.Symbol.iterator) {
229
+ global.Symbol.iterator = Symbol('Symbol.iterator');
230
+ }
232
231
  }
233
232
  function setupGlobals(global) {
234
- global.Symbol = Symbol;
233
+ polyfillSymbol(global, Symbol);
235
234
  global.Reflect = global.Reflect || {};
236
235
  global.Reflect.global = global.Reflect.global || global;
237
236
  polyfillObject(global.Object);
238
237
  }
239
238
  setupGlobals(global);
240
239
  global.$traceurRuntime = {
241
- assertObject: assertObject,
240
+ checkObjectCoercible: checkObjectCoercible,
242
241
  createPrivateName: createPrivateName,
242
+ defineProperties: $defineProperties,
243
+ defineProperty: $defineProperty,
243
244
  exportStar: exportStar,
244
245
  getOwnHashObject: getOwnHashObject,
245
- privateNames: privateNames,
246
- setProperty: setProperty,
246
+ getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
247
+ getOwnPropertyNames: $getOwnPropertyNames,
248
+ isObject: isObject,
249
+ isPrivateName: isPrivateName,
250
+ isSymbolString: isSymbolString,
251
+ keys: $keys,
252
+ options: {},
247
253
  setupGlobals: setupGlobals,
248
254
  toObject: toObject,
249
- isObject: isObject,
250
255
  toProperty: toProperty,
251
- type: types,
252
- typeof: typeOf,
253
- defineProperties: $defineProperties,
254
- defineProperty: $defineProperty,
255
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
256
- getOwnPropertyNames: $getOwnPropertyNames,
257
- keys: $keys
256
+ typeof: typeOf
258
257
  };
259
- })(typeof global !== 'undefined' ? global : this);
258
+ })(typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this);
259
+ (function() {
260
+ 'use strict';
261
+ var path;
262
+ function relativeRequire(callerPath, requiredPath) {
263
+ path = path || typeof require !== 'undefined' && require('path');
264
+ function isDirectory(path) {
265
+ return path.slice(-1) === '/';
266
+ }
267
+ function isAbsolute(path) {
268
+ return path[0] === '/';
269
+ }
270
+ function isRelative(path) {
271
+ return path[0] === '.';
272
+ }
273
+ if (isDirectory(requiredPath) || isAbsolute(requiredPath))
274
+ return ;
275
+ return isRelative(requiredPath) ? require(path.resolve(path.dirname(callerPath), requiredPath)) : require(requiredPath);
276
+ }
277
+ $traceurRuntime.require = relativeRequire;
278
+ })();
260
279
  (function() {
261
280
  'use strict';
262
281
  function spread() {
@@ -264,10 +283,7 @@
264
283
  j = 0,
265
284
  iterResult;
266
285
  for (var i = 0; i < arguments.length; i++) {
267
- var valueToSpread = arguments[i];
268
- if (!$traceurRuntime.isObject(valueToSpread)) {
269
- throw new TypeError('Cannot spread non-object.');
270
- }
286
+ var valueToSpread = $traceurRuntime.checkObjectCoercible(arguments[i]);
271
287
  if (typeof valueToSpread[$traceurRuntime.toProperty(Symbol.iterator)] !== 'function') {
272
288
  throw new TypeError('Cannot spread non-iterable object.');
273
289
  }
@@ -280,6 +296,19 @@
280
296
  }
281
297
  $traceurRuntime.spread = spread;
282
298
  })();
299
+ (function() {
300
+ 'use strict';
301
+ function iteratorToArray(iter) {
302
+ var rv = [];
303
+ var i = 0;
304
+ var tmp;
305
+ while (!(tmp = iter.next()).done) {
306
+ rv[i++] = tmp.value;
307
+ }
308
+ return rv;
309
+ }
310
+ $traceurRuntime.iteratorToArray = iteratorToArray;
311
+ })();
283
312
  (function() {
284
313
  'use strict';
285
314
  var $Object = Object;
@@ -290,6 +319,9 @@
290
319
  var $getOwnPropertyDescriptor = $traceurRuntime.getOwnPropertyDescriptor;
291
320
  var $getOwnPropertyNames = $traceurRuntime.getOwnPropertyNames;
292
321
  var $getPrototypeOf = Object.getPrototypeOf;
322
+ var $__0 = Object,
323
+ getOwnPropertyNames = $__0.getOwnPropertyNames,
324
+ getOwnPropertySymbols = $__0.getOwnPropertySymbols;
293
325
  function superDescriptor(homeObject, name) {
294
326
  var proto = $getPrototypeOf(homeObject);
295
327
  do {
@@ -300,8 +332,8 @@
300
332
  } while (proto);
301
333
  return undefined;
302
334
  }
303
- function superCall(self, homeObject, name, args) {
304
- return superGet(self, homeObject, name).apply(self, args);
335
+ function superConstructor(ctor) {
336
+ return ctor.__proto__;
305
337
  }
306
338
  function superGet(self, homeObject, name) {
307
339
  var descriptor = superDescriptor(homeObject, name);
@@ -318,16 +350,20 @@
318
350
  descriptor.set.call(self, value);
319
351
  return value;
320
352
  }
321
- throw $TypeError("super has no setter '" + name + "'.");
353
+ throw $TypeError(("super has no setter '" + name + "'."));
322
354
  }
323
355
  function getDescriptors(object) {
324
- var descriptors = {},
325
- name,
326
- names = $getOwnPropertyNames(object);
356
+ var descriptors = {};
357
+ var names = getOwnPropertyNames(object);
327
358
  for (var i = 0; i < names.length; i++) {
328
359
  var name = names[i];
329
360
  descriptors[name] = $getOwnPropertyDescriptor(object, name);
330
361
  }
362
+ var symbols = getOwnPropertySymbols(object);
363
+ for (var i = 0; i < symbols.length; i++) {
364
+ var symbol = symbols[i];
365
+ descriptors[$traceurRuntime.toProperty(symbol)] = $getOwnPropertyDescriptor(object, $traceurRuntime.toProperty(symbol));
366
+ }
331
367
  return descriptors;
332
368
  }
333
369
  function createClass(ctor, object, staticObject, superClass) {
@@ -355,23 +391,22 @@
355
391
  var prototype = superClass.prototype;
356
392
  if ($Object(prototype) === prototype || prototype === null)
357
393
  return superClass.prototype;
394
+ throw new $TypeError('super prototype must be an Object or null');
358
395
  }
359
396
  if (superClass === null)
360
397
  return null;
361
- throw new $TypeError();
362
- }
363
- function defaultSuperCall(self, homeObject, args) {
364
- if ($getPrototypeOf(homeObject) !== null)
365
- superCall(self, homeObject, 'constructor', args);
398
+ throw new $TypeError(("Super expression must either be null or a function, not " + typeof superClass + "."));
366
399
  }
367
400
  $traceurRuntime.createClass = createClass;
368
- $traceurRuntime.defaultSuperCall = defaultSuperCall;
369
- $traceurRuntime.superCall = superCall;
401
+ $traceurRuntime.superConstructor = superConstructor;
370
402
  $traceurRuntime.superGet = superGet;
371
403
  $traceurRuntime.superSet = superSet;
372
404
  })();
373
405
  (function() {
374
406
  'use strict';
407
+ if (typeof $traceurRuntime !== 'object') {
408
+ throw new Error('traceur runtime not found.');
409
+ }
375
410
  var createPrivateName = $traceurRuntime.createPrivateName;
376
411
  var $defineProperties = $traceurRuntime.defineProperties;
377
412
  var $defineProperty = $traceurRuntime.defineProperty;
@@ -587,7 +622,7 @@
587
622
  var last = ctx.tryStack_[ctx.tryStack_.length - 1];
588
623
  if (!last) {
589
624
  ctx.handleException(ex);
590
- return;
625
+ return ;
591
626
  }
592
627
  ctx.state = last.catch !== undefined ? last.catch : last.finally;
593
628
  if (last.finallyFallThrough !== undefined)
@@ -718,9 +753,53 @@
718
753
  $traceurRuntime.removeDotSegments = removeDotSegments;
719
754
  $traceurRuntime.resolveUrl = resolveUrl;
720
755
  })();
756
+ (function() {
757
+ 'use strict';
758
+ var types = {
759
+ any: {name: 'any'},
760
+ boolean: {name: 'boolean'},
761
+ number: {name: 'number'},
762
+ string: {name: 'string'},
763
+ symbol: {name: 'symbol'},
764
+ void: {name: 'void'}
765
+ };
766
+ var GenericType = function GenericType(type, argumentTypes) {
767
+ this.type = type;
768
+ this.argumentTypes = argumentTypes;
769
+ };
770
+ ($traceurRuntime.createClass)(GenericType, {}, {});
771
+ var typeRegister = Object.create(null);
772
+ function genericType(type) {
773
+ for (var argumentTypes = [],
774
+ $__1 = 1; $__1 < arguments.length; $__1++)
775
+ argumentTypes[$__1 - 1] = arguments[$__1];
776
+ var typeMap = typeRegister;
777
+ var key = $traceurRuntime.getOwnHashObject(type).hash;
778
+ if (!typeMap[key]) {
779
+ typeMap[key] = Object.create(null);
780
+ }
781
+ typeMap = typeMap[key];
782
+ for (var i = 0; i < argumentTypes.length - 1; i++) {
783
+ key = $traceurRuntime.getOwnHashObject(argumentTypes[i]).hash;
784
+ if (!typeMap[key]) {
785
+ typeMap[key] = Object.create(null);
786
+ }
787
+ typeMap = typeMap[key];
788
+ }
789
+ var tail = argumentTypes[argumentTypes.length - 1];
790
+ key = $traceurRuntime.getOwnHashObject(tail).hash;
791
+ if (!typeMap[key]) {
792
+ typeMap[key] = new GenericType(type, argumentTypes);
793
+ }
794
+ return typeMap[key];
795
+ }
796
+ $traceurRuntime.GenericType = GenericType;
797
+ $traceurRuntime.genericType = genericType;
798
+ $traceurRuntime.type = types;
799
+ })();
721
800
  (function(global) {
722
801
  'use strict';
723
- var $__2 = $traceurRuntime.assertObject($traceurRuntime),
802
+ var $__2 = $traceurRuntime,
724
803
  canonicalizeUrl = $__2.canonicalizeUrl,
725
804
  resolveUrl = $__2.resolveUrl,
726
805
  isAbsolute = $__2.isAbsolute;
@@ -735,19 +814,110 @@
735
814
  this.value_ = uncoatedModule;
736
815
  };
737
816
  ($traceurRuntime.createClass)(UncoatedModuleEntry, {}, {});
817
+ var ModuleEvaluationError = function ModuleEvaluationError(erroneousModuleName, cause) {
818
+ this.message = this.constructor.name + ': ' + this.stripCause(cause) + ' in ' + erroneousModuleName;
819
+ if (!(cause instanceof $ModuleEvaluationError) && cause.stack)
820
+ this.stack = this.stripStack(cause.stack);
821
+ else
822
+ this.stack = '';
823
+ };
824
+ var $ModuleEvaluationError = ModuleEvaluationError;
825
+ ($traceurRuntime.createClass)(ModuleEvaluationError, {
826
+ stripError: function(message) {
827
+ return message.replace(/.*Error:/, this.constructor.name + ':');
828
+ },
829
+ stripCause: function(cause) {
830
+ if (!cause)
831
+ return '';
832
+ if (!cause.message)
833
+ return cause + '';
834
+ return this.stripError(cause.message);
835
+ },
836
+ loadedBy: function(moduleName) {
837
+ this.stack += '\n loaded by ' + moduleName;
838
+ },
839
+ stripStack: function(causeStack) {
840
+ var stack = [];
841
+ causeStack.split('\n').some((function(frame) {
842
+ if (/UncoatedModuleInstantiator/.test(frame))
843
+ return true;
844
+ stack.push(frame);
845
+ }));
846
+ stack[0] = this.stripError(stack[0]);
847
+ return stack.join('\n');
848
+ }
849
+ }, {}, Error);
850
+ function beforeLines(lines, number) {
851
+ var result = [];
852
+ var first = number - 3;
853
+ if (first < 0)
854
+ first = 0;
855
+ for (var i = first; i < number; i++) {
856
+ result.push(lines[i]);
857
+ }
858
+ return result;
859
+ }
860
+ function afterLines(lines, number) {
861
+ var last = number + 1;
862
+ if (last > lines.length - 1)
863
+ last = lines.length - 1;
864
+ var result = [];
865
+ for (var i = number; i <= last; i++) {
866
+ result.push(lines[i]);
867
+ }
868
+ return result;
869
+ }
870
+ function columnSpacing(columns) {
871
+ var result = '';
872
+ for (var i = 0; i < columns - 1; i++) {
873
+ result += '-';
874
+ }
875
+ return result;
876
+ }
738
877
  var UncoatedModuleInstantiator = function UncoatedModuleInstantiator(url, func) {
739
- $traceurRuntime.superCall(this, $UncoatedModuleInstantiator.prototype, "constructor", [url, null]);
878
+ $traceurRuntime.superConstructor($UncoatedModuleInstantiator).call(this, url, null);
740
879
  this.func = func;
741
880
  };
742
881
  var $UncoatedModuleInstantiator = UncoatedModuleInstantiator;
743
882
  ($traceurRuntime.createClass)(UncoatedModuleInstantiator, {getUncoatedModule: function() {
744
883
  if (this.value_)
745
884
  return this.value_;
746
- return this.value_ = this.func.call(global);
885
+ try {
886
+ var relativeRequire;
887
+ if (typeof $traceurRuntime !== undefined) {
888
+ relativeRequire = $traceurRuntime.require.bind(null, this.url);
889
+ }
890
+ return this.value_ = this.func.call(global, relativeRequire);
891
+ } catch (ex) {
892
+ if (ex instanceof ModuleEvaluationError) {
893
+ ex.loadedBy(this.url);
894
+ throw ex;
895
+ }
896
+ if (ex.stack) {
897
+ var lines = this.func.toString().split('\n');
898
+ var evaled = [];
899
+ ex.stack.split('\n').some(function(frame) {
900
+ if (frame.indexOf('UncoatedModuleInstantiator.getUncoatedModule') > 0)
901
+ return true;
902
+ var m = /(at\s[^\s]*\s).*>:(\d*):(\d*)\)/.exec(frame);
903
+ if (m) {
904
+ var line = parseInt(m[2], 10);
905
+ evaled = evaled.concat(beforeLines(lines, line));
906
+ evaled.push(columnSpacing(m[3]) + '^');
907
+ evaled = evaled.concat(afterLines(lines, line));
908
+ evaled.push('= = = = = = = = =');
909
+ } else {
910
+ evaled.push(frame);
911
+ }
912
+ });
913
+ ex.stack = evaled.join('\n');
914
+ }
915
+ throw new ModuleEvaluationError(this.url, ex);
916
+ }
747
917
  }}, {}, UncoatedModuleEntry);
748
918
  function getUncoatedModuleInstantiator(name) {
749
919
  if (!name)
750
- return;
920
+ return ;
751
921
  var url = ModuleStore.normalize(name);
752
922
  return moduleInstantiators[url];
753
923
  }
@@ -781,8 +951,8 @@
781
951
  }
782
952
  var ModuleStore = {
783
953
  normalize: function(name, refererName, refererAddress) {
784
- if (typeof name !== "string")
785
- throw new TypeError("module name must be a string, not " + typeof name);
954
+ if (typeof name !== 'string')
955
+ throw new TypeError('module name must be a string, not ' + typeof name);
786
956
  if (isAbsolute(name))
787
957
  return canonicalizeUrl(name);
788
958
  if (/[^\.]\/\.\.\//.test(name)) {
@@ -815,7 +985,7 @@
815
985
  set baseURL(v) {
816
986
  baseURL = String(v);
817
987
  },
818
- registerModule: function(name, func) {
988
+ registerModule: function(name, deps, func) {
819
989
  var normalizedName = ModuleStore.normalize(name);
820
990
  if (moduleInstantiators[normalizedName])
821
991
  throw new Error('duplicate module named ' + normalizedName);
@@ -824,7 +994,7 @@
824
994
  bundleStore: Object.create(null),
825
995
  register: function(name, deps, func) {
826
996
  if (!deps || !deps.length && !func.length) {
827
- this.registerModule(name, func);
997
+ this.registerModule(name, deps, func);
828
998
  } else {
829
999
  this.bundleStore[name] = {
830
1000
  deps: deps,
@@ -858,7 +1028,9 @@
858
1028
  return this.get(this.testingPrefix_ + name);
859
1029
  }
860
1030
  };
861
- ModuleStore.set('@traceur/src/runtime/ModuleStore', new Module({ModuleStore: ModuleStore}));
1031
+ var moduleStoreModule = new Module({ModuleStore: ModuleStore});
1032
+ ModuleStore.set('@traceur/src/runtime/ModuleStore', moduleStoreModule);
1033
+ ModuleStore.set('@traceur/src/runtime/ModuleStore.js', moduleStoreModule);
862
1034
  var setupGlobals = $traceurRuntime.setupGlobals;
863
1035
  $traceurRuntime.setupGlobals = function(global) {
864
1036
  setupGlobals(global);
@@ -866,6 +1038,7 @@
866
1038
  $traceurRuntime.ModuleStore = ModuleStore;
867
1039
  global.System = {
868
1040
  register: ModuleStore.register.bind(ModuleStore),
1041
+ registerModule: ModuleStore.registerModule.bind(ModuleStore),
869
1042
  get: ModuleStore.get,
870
1043
  set: ModuleStore.set,
871
1044
  normalize: ModuleStore.normalize
@@ -874,13 +1047,19 @@
874
1047
  var instantiator = getUncoatedModuleInstantiator(name);
875
1048
  return instantiator && instantiator.getUncoatedModule();
876
1049
  };
877
- })(typeof global !== 'undefined' ? global : this);
878
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/utils", [], function() {
1050
+ })(typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this);
1051
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js", [], function() {
879
1052
  "use strict";
880
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/utils";
1053
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/utils.js";
1054
+ var $ceil = Math.ceil;
1055
+ var $floor = Math.floor;
1056
+ var $isFinite = isFinite;
1057
+ var $isNaN = isNaN;
1058
+ var $pow = Math.pow;
1059
+ var $min = Math.min;
881
1060
  var toObject = $traceurRuntime.toObject;
882
1061
  function toUint32(x) {
883
- return x | 0;
1062
+ return x >>> 0;
884
1063
  }
885
1064
  function isObject(x) {
886
1065
  return x && (typeof x === 'object' || typeof x === 'function');
@@ -888,18 +1067,21 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/utils", [], functi
888
1067
  function isCallable(x) {
889
1068
  return typeof x === 'function';
890
1069
  }
1070
+ function isNumber(x) {
1071
+ return typeof x === 'number';
1072
+ }
891
1073
  function toInteger(x) {
892
1074
  x = +x;
893
- if (isNaN(x))
1075
+ if ($isNaN(x))
894
1076
  return 0;
895
- if (!isFinite(x) || x === 0)
1077
+ if (x === 0 || !$isFinite(x))
896
1078
  return x;
897
- return x > 0 ? Math.floor(x) : Math.ceil(x);
1079
+ return x > 0 ? $floor(x) : $ceil(x);
898
1080
  }
899
- var MAX_SAFE_LENGTH = Math.pow(2, 53) - 1;
1081
+ var MAX_SAFE_LENGTH = $pow(2, 53) - 1;
900
1082
  function toLength(x) {
901
1083
  var len = toInteger(x);
902
- return len < 0 ? 0 : Math.min(len, MAX_SAFE_LENGTH);
1084
+ return len < 0 ? 0 : $min(len, MAX_SAFE_LENGTH);
903
1085
  }
904
1086
  function checkIterable(x) {
905
1087
  return !isObject(x) ? undefined : x[Symbol.iterator];
@@ -907,6 +1089,68 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/utils", [], functi
907
1089
  function isConstructor(x) {
908
1090
  return isCallable(x);
909
1091
  }
1092
+ function createIteratorResultObject(value, done) {
1093
+ return {
1094
+ value: value,
1095
+ done: done
1096
+ };
1097
+ }
1098
+ function maybeDefine(object, name, descr) {
1099
+ if (!(name in object)) {
1100
+ Object.defineProperty(object, name, descr);
1101
+ }
1102
+ }
1103
+ function maybeDefineMethod(object, name, value) {
1104
+ maybeDefine(object, name, {
1105
+ value: value,
1106
+ configurable: true,
1107
+ enumerable: false,
1108
+ writable: true
1109
+ });
1110
+ }
1111
+ function maybeDefineConst(object, name, value) {
1112
+ maybeDefine(object, name, {
1113
+ value: value,
1114
+ configurable: false,
1115
+ enumerable: false,
1116
+ writable: false
1117
+ });
1118
+ }
1119
+ function maybeAddFunctions(object, functions) {
1120
+ for (var i = 0; i < functions.length; i += 2) {
1121
+ var name = functions[i];
1122
+ var value = functions[i + 1];
1123
+ maybeDefineMethod(object, name, value);
1124
+ }
1125
+ }
1126
+ function maybeAddConsts(object, consts) {
1127
+ for (var i = 0; i < consts.length; i += 2) {
1128
+ var name = consts[i];
1129
+ var value = consts[i + 1];
1130
+ maybeDefineConst(object, name, value);
1131
+ }
1132
+ }
1133
+ function maybeAddIterator(object, func, Symbol) {
1134
+ if (!Symbol || !Symbol.iterator || object[Symbol.iterator])
1135
+ return ;
1136
+ if (object['@@iterator'])
1137
+ func = object['@@iterator'];
1138
+ Object.defineProperty(object, Symbol.iterator, {
1139
+ value: func,
1140
+ configurable: true,
1141
+ enumerable: false,
1142
+ writable: true
1143
+ });
1144
+ }
1145
+ var polyfills = [];
1146
+ function registerPolyfill(func) {
1147
+ polyfills.push(func);
1148
+ }
1149
+ function polyfillAll(global) {
1150
+ polyfills.forEach((function(f) {
1151
+ return f(global);
1152
+ }));
1153
+ }
910
1154
  return {
911
1155
  get toObject() {
912
1156
  return toObject;
@@ -920,6 +1164,9 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/utils", [], functi
920
1164
  get isCallable() {
921
1165
  return isCallable;
922
1166
  },
1167
+ get isNumber() {
1168
+ return isNumber;
1169
+ },
923
1170
  get toInteger() {
924
1171
  return toInteger;
925
1172
  },
@@ -931,245 +1178,92 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/utils", [], functi
931
1178
  },
932
1179
  get isConstructor() {
933
1180
  return isConstructor;
1181
+ },
1182
+ get createIteratorResultObject() {
1183
+ return createIteratorResultObject;
1184
+ },
1185
+ get maybeDefine() {
1186
+ return maybeDefine;
1187
+ },
1188
+ get maybeDefineMethod() {
1189
+ return maybeDefineMethod;
1190
+ },
1191
+ get maybeDefineConst() {
1192
+ return maybeDefineConst;
1193
+ },
1194
+ get maybeAddFunctions() {
1195
+ return maybeAddFunctions;
1196
+ },
1197
+ get maybeAddConsts() {
1198
+ return maybeAddConsts;
1199
+ },
1200
+ get maybeAddIterator() {
1201
+ return maybeAddIterator;
1202
+ },
1203
+ get registerPolyfill() {
1204
+ return registerPolyfill;
1205
+ },
1206
+ get polyfillAll() {
1207
+ return polyfillAll;
934
1208
  }
935
1209
  };
936
1210
  });
937
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Array", [], function() {
1211
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/Map.js", [], function() {
938
1212
  "use strict";
939
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/Array";
940
- var $__5 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/utils")),
941
- isCallable = $__5.isCallable,
942
- isConstructor = $__5.isConstructor,
943
- checkIterable = $__5.checkIterable,
944
- toInteger = $__5.toInteger,
945
- toLength = $__5.toLength,
946
- toObject = $__5.toObject;
947
- function from(arrLike) {
948
- var mapFn = arguments[1];
949
- var thisArg = arguments[2];
950
- var C = this;
951
- var items = toObject(arrLike);
952
- var mapping = mapFn !== undefined;
953
- var k = 0;
954
- var arr,
955
- len;
956
- if (mapping && !isCallable(mapFn)) {
957
- throw TypeError();
958
- }
959
- if (checkIterable(items)) {
960
- arr = isConstructor(C) ? new C() : [];
961
- for (var $__3 = items[Symbol.iterator](),
962
- $__4; !($__4 = $__3.next()).done; ) {
963
- var item = $__4.value;
964
- {
965
- if (mapping) {
966
- arr[k] = mapFn.call(thisArg, item, k);
967
- } else {
968
- arr[k] = item;
969
- }
970
- k++;
971
- }
972
- }
973
- arr.length = k;
974
- return arr;
975
- }
976
- len = toLength(items.length);
977
- arr = isConstructor(C) ? new C(len) : new Array(len);
978
- for (; k < len; k++) {
979
- if (mapping) {
980
- arr[k] = mapFn.call(thisArg, items[k], k);
981
- } else {
982
- arr[k] = items[k];
983
- }
984
- }
985
- arr.length = len;
986
- return arr;
987
- }
988
- function fill(value) {
989
- var start = arguments[1] !== (void 0) ? arguments[1] : 0;
990
- var end = arguments[2];
991
- var object = toObject(this);
992
- var len = toLength(object.length);
993
- var fillStart = toInteger(start);
994
- var fillEnd = end !== undefined ? toInteger(end) : len;
995
- fillStart = fillStart < 0 ? Math.max(len + fillStart, 0) : Math.min(fillStart, len);
996
- fillEnd = fillEnd < 0 ? Math.max(len + fillEnd, 0) : Math.min(fillEnd, len);
997
- while (fillStart < fillEnd) {
998
- object[fillStart] = value;
999
- fillStart++;
1213
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/Map.js";
1214
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
1215
+ isObject = $__0.isObject,
1216
+ maybeAddIterator = $__0.maybeAddIterator,
1217
+ registerPolyfill = $__0.registerPolyfill;
1218
+ var getOwnHashObject = $traceurRuntime.getOwnHashObject;
1219
+ var $hasOwnProperty = Object.prototype.hasOwnProperty;
1220
+ var deletedSentinel = {};
1221
+ function lookupIndex(map, key) {
1222
+ if (isObject(key)) {
1223
+ var hashObject = getOwnHashObject(key);
1224
+ return hashObject && map.objectIndex_[hashObject.hash];
1000
1225
  }
1001
- return object;
1002
- }
1003
- function find(predicate) {
1004
- var thisArg = arguments[1];
1005
- return findHelper(this, predicate, thisArg);
1226
+ if (typeof key === 'string')
1227
+ return map.stringIndex_[key];
1228
+ return map.primitiveIndex_[key];
1006
1229
  }
1007
- function findIndex(predicate) {
1008
- var thisArg = arguments[1];
1009
- return findHelper(this, predicate, thisArg, true);
1230
+ function initMap(map) {
1231
+ map.entries_ = [];
1232
+ map.objectIndex_ = Object.create(null);
1233
+ map.stringIndex_ = Object.create(null);
1234
+ map.primitiveIndex_ = Object.create(null);
1235
+ map.deletedCount_ = 0;
1010
1236
  }
1011
- function findHelper(self, predicate) {
1012
- var thisArg = arguments[2];
1013
- var returnIndex = arguments[3] !== (void 0) ? arguments[3] : false;
1014
- var object = toObject(self);
1015
- var len = toLength(object.length);
1016
- if (!isCallable(predicate)) {
1017
- throw TypeError();
1237
+ var Map = function Map() {
1238
+ var $__5,
1239
+ $__6;
1240
+ var iterable = arguments[0];
1241
+ if (!isObject(this))
1242
+ throw new TypeError('Map called on incompatible type');
1243
+ if ($hasOwnProperty.call(this, 'entries_')) {
1244
+ throw new TypeError('Map can not be reentrantly initialised');
1018
1245
  }
1019
- for (var i = 0; i < len; i++) {
1020
- if (i in object) {
1021
- var value = object[i];
1022
- if (predicate.call(thisArg, value, i, object)) {
1023
- return returnIndex ? i : value;
1246
+ initMap(this);
1247
+ if (iterable !== null && iterable !== undefined) {
1248
+ for (var $__2 = iterable[$traceurRuntime.toProperty(Symbol.iterator)](),
1249
+ $__3 = void 0; !($__3 = $__2.next()).done; ) {
1250
+ var $__4 = $__3.value,
1251
+ key = ($__5 = $__4[$traceurRuntime.toProperty(Symbol.iterator)](), ($__6 = $__5.next()).done ? void 0 : $__6.value),
1252
+ value = ($__6 = $__5.next()).done ? void 0 : $__6.value;
1253
+ {
1254
+ this.set(key, value);
1024
1255
  }
1025
1256
  }
1026
1257
  }
1027
- return returnIndex ? -1 : undefined;
1028
- }
1029
- return {
1030
- get from() {
1031
- return from;
1032
- },
1033
- get fill() {
1034
- return fill;
1258
+ };
1259
+ ($traceurRuntime.createClass)(Map, {
1260
+ get size() {
1261
+ return this.entries_.length / 2 - this.deletedCount_;
1035
1262
  },
1036
- get find() {
1037
- return find;
1038
- },
1039
- get findIndex() {
1040
- return findIndex;
1041
- }
1042
- };
1043
- });
1044
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/ArrayIterator", [], function() {
1045
- "use strict";
1046
- var $__7;
1047
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/ArrayIterator";
1048
- var $__8 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/utils")),
1049
- toObject = $__8.toObject,
1050
- toUint32 = $__8.toUint32;
1051
- var ARRAY_ITERATOR_KIND_KEYS = 1;
1052
- var ARRAY_ITERATOR_KIND_VALUES = 2;
1053
- var ARRAY_ITERATOR_KIND_ENTRIES = 3;
1054
- var ArrayIterator = function ArrayIterator() {};
1055
- ($traceurRuntime.createClass)(ArrayIterator, ($__7 = {}, Object.defineProperty($__7, "next", {
1056
- value: function() {
1057
- var iterator = toObject(this);
1058
- var array = iterator.iteratorObject_;
1059
- if (!array) {
1060
- throw new TypeError('Object is not an ArrayIterator');
1061
- }
1062
- var index = iterator.arrayIteratorNextIndex_;
1063
- var itemKind = iterator.arrayIterationKind_;
1064
- var length = toUint32(array.length);
1065
- if (index >= length) {
1066
- iterator.arrayIteratorNextIndex_ = Infinity;
1067
- return createIteratorResultObject(undefined, true);
1068
- }
1069
- iterator.arrayIteratorNextIndex_ = index + 1;
1070
- if (itemKind == ARRAY_ITERATOR_KIND_VALUES)
1071
- return createIteratorResultObject(array[index], false);
1072
- if (itemKind == ARRAY_ITERATOR_KIND_ENTRIES)
1073
- return createIteratorResultObject([index, array[index]], false);
1074
- return createIteratorResultObject(index, false);
1075
- },
1076
- configurable: true,
1077
- enumerable: true,
1078
- writable: true
1079
- }), Object.defineProperty($__7, Symbol.iterator, {
1080
- value: function() {
1081
- return this;
1082
- },
1083
- configurable: true,
1084
- enumerable: true,
1085
- writable: true
1086
- }), $__7), {});
1087
- function createArrayIterator(array, kind) {
1088
- var object = toObject(array);
1089
- var iterator = new ArrayIterator;
1090
- iterator.iteratorObject_ = object;
1091
- iterator.arrayIteratorNextIndex_ = 0;
1092
- iterator.arrayIterationKind_ = kind;
1093
- return iterator;
1094
- }
1095
- function createIteratorResultObject(value, done) {
1096
- return {
1097
- value: value,
1098
- done: done
1099
- };
1100
- }
1101
- function entries() {
1102
- return createArrayIterator(this, ARRAY_ITERATOR_KIND_ENTRIES);
1103
- }
1104
- function keys() {
1105
- return createArrayIterator(this, ARRAY_ITERATOR_KIND_KEYS);
1106
- }
1107
- function values() {
1108
- return createArrayIterator(this, ARRAY_ITERATOR_KIND_VALUES);
1109
- }
1110
- return {
1111
- get entries() {
1112
- return entries;
1113
- },
1114
- get keys() {
1115
- return keys;
1116
- },
1117
- get values() {
1118
- return values;
1119
- }
1120
- };
1121
- });
1122
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Map", [], function() {
1123
- "use strict";
1124
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/Map";
1125
- var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/utils")).isObject;
1126
- var getOwnHashObject = $traceurRuntime.getOwnHashObject;
1127
- var $hasOwnProperty = Object.prototype.hasOwnProperty;
1128
- var deletedSentinel = {};
1129
- function lookupIndex(map, key) {
1130
- if (isObject(key)) {
1131
- var hashObject = getOwnHashObject(key);
1132
- return hashObject && map.objectIndex_[hashObject.hash];
1133
- }
1134
- if (typeof key === 'string')
1135
- return map.stringIndex_[key];
1136
- return map.primitiveIndex_[key];
1137
- }
1138
- function initMap(map) {
1139
- map.entries_ = [];
1140
- map.objectIndex_ = Object.create(null);
1141
- map.stringIndex_ = Object.create(null);
1142
- map.primitiveIndex_ = Object.create(null);
1143
- map.deletedCount_ = 0;
1144
- }
1145
- var Map = function Map() {
1146
- var iterable = arguments[0];
1147
- if (!isObject(this))
1148
- throw new TypeError('Map called on incompatible type');
1149
- if ($hasOwnProperty.call(this, 'entries_')) {
1150
- throw new TypeError('Map can not be reentrantly initialised');
1151
- }
1152
- initMap(this);
1153
- if (iterable !== null && iterable !== undefined) {
1154
- for (var $__10 = iterable[Symbol.iterator](),
1155
- $__11; !($__11 = $__10.next()).done; ) {
1156
- var $__12 = $traceurRuntime.assertObject($__11.value),
1157
- key = $__12[0],
1158
- value = $__12[1];
1159
- {
1160
- this.set(key, value);
1161
- }
1162
- }
1163
- }
1164
- };
1165
- ($traceurRuntime.createClass)(Map, {
1166
- get size() {
1167
- return this.entries_.length / 2 - this.deletedCount_;
1168
- },
1169
- get: function(key) {
1170
- var index = lookupIndex(this, key);
1171
- if (index !== undefined)
1172
- return this.entries_[index + 1];
1263
+ get: function(key) {
1264
+ var index = lookupIndex(this, key);
1265
+ if (index !== undefined)
1266
+ return this.entries_[index + 1];
1173
1267
  },
1174
1268
  set: function(key, value) {
1175
1269
  var objectMode = isObject(key);
@@ -1218,15 +1312,16 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Map", [], function
1218
1312
  this.entries_[index] = deletedSentinel;
1219
1313
  this.entries_[index + 1] = undefined;
1220
1314
  this.deletedCount_++;
1315
+ return true;
1221
1316
  }
1317
+ return false;
1222
1318
  },
1223
1319
  clear: function() {
1224
1320
  initMap(this);
1225
1321
  },
1226
1322
  forEach: function(callbackFn) {
1227
1323
  var thisArg = arguments[1];
1228
- for (var i = 0,
1229
- len = this.entries_.length; i < len; i += 2) {
1324
+ for (var i = 0; i < this.entries_.length; i += 2) {
1230
1325
  var key = this.entries_[i];
1231
1326
  var value = this.entries_[i + 1];
1232
1327
  if (key === deletedSentinel)
@@ -1234,20 +1329,19 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Map", [], function
1234
1329
  callbackFn.call(thisArg, value, key, this);
1235
1330
  }
1236
1331
  },
1237
- entries: $traceurRuntime.initGeneratorFunction(function $__13() {
1332
+ entries: $traceurRuntime.initGeneratorFunction(function $__7() {
1238
1333
  var i,
1239
- len,
1240
1334
  key,
1241
1335
  value;
1242
1336
  return $traceurRuntime.createGeneratorInstance(function($ctx) {
1243
1337
  while (true)
1244
1338
  switch ($ctx.state) {
1245
1339
  case 0:
1246
- i = 0, len = this.entries_.length;
1340
+ i = 0;
1247
1341
  $ctx.state = 12;
1248
1342
  break;
1249
1343
  case 12:
1250
- $ctx.state = (i < len) ? 8 : -2;
1344
+ $ctx.state = (i < this.entries_.length) ? 8 : -2;
1251
1345
  break;
1252
1346
  case 4:
1253
1347
  i += 2;
@@ -1271,22 +1365,21 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Map", [], function
1271
1365
  default:
1272
1366
  return $ctx.end();
1273
1367
  }
1274
- }, $__13, this);
1368
+ }, $__7, this);
1275
1369
  }),
1276
- keys: $traceurRuntime.initGeneratorFunction(function $__14() {
1370
+ keys: $traceurRuntime.initGeneratorFunction(function $__8() {
1277
1371
  var i,
1278
- len,
1279
1372
  key,
1280
1373
  value;
1281
1374
  return $traceurRuntime.createGeneratorInstance(function($ctx) {
1282
1375
  while (true)
1283
1376
  switch ($ctx.state) {
1284
1377
  case 0:
1285
- i = 0, len = this.entries_.length;
1378
+ i = 0;
1286
1379
  $ctx.state = 12;
1287
1380
  break;
1288
1381
  case 12:
1289
- $ctx.state = (i < len) ? 8 : -2;
1382
+ $ctx.state = (i < this.entries_.length) ? 8 : -2;
1290
1383
  break;
1291
1384
  case 4:
1292
1385
  i += 2;
@@ -1310,22 +1403,21 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Map", [], function
1310
1403
  default:
1311
1404
  return $ctx.end();
1312
1405
  }
1313
- }, $__14, this);
1406
+ }, $__8, this);
1314
1407
  }),
1315
- values: $traceurRuntime.initGeneratorFunction(function $__15() {
1408
+ values: $traceurRuntime.initGeneratorFunction(function $__9() {
1316
1409
  var i,
1317
- len,
1318
1410
  key,
1319
1411
  value;
1320
1412
  return $traceurRuntime.createGeneratorInstance(function($ctx) {
1321
1413
  while (true)
1322
1414
  switch ($ctx.state) {
1323
1415
  case 0:
1324
- i = 0, len = this.entries_.length;
1416
+ i = 0;
1325
1417
  $ctx.state = 12;
1326
1418
  break;
1327
1419
  case 12:
1328
- $ctx.state = (i < len) ? 8 : -2;
1420
+ $ctx.state = (i < this.entries_.length) ? 8 : -2;
1329
1421
  break;
1330
1422
  case 4:
1331
1423
  i += 2;
@@ -1349,7 +1441,7 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Map", [], function
1349
1441
  default:
1350
1442
  return $ctx.end();
1351
1443
  }
1352
- }, $__15, this);
1444
+ }, $__9, this);
1353
1445
  })
1354
1446
  }, {});
1355
1447
  Object.defineProperty(Map.prototype, Symbol.iterator, {
@@ -1357,81 +1449,202 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Map", [], function
1357
1449
  writable: true,
1358
1450
  value: Map.prototype.entries
1359
1451
  });
1360
- return {get Map() {
1452
+ function polyfillMap(global) {
1453
+ var $__4 = global,
1454
+ Object = $__4.Object,
1455
+ Symbol = $__4.Symbol;
1456
+ if (!global.Map)
1457
+ global.Map = Map;
1458
+ var mapPrototype = global.Map.prototype;
1459
+ if (mapPrototype.entries === undefined)
1460
+ global.Map = Map;
1461
+ if (mapPrototype.entries) {
1462
+ maybeAddIterator(mapPrototype, mapPrototype.entries, Symbol);
1463
+ maybeAddIterator(Object.getPrototypeOf(new global.Map().entries()), function() {
1464
+ return this;
1465
+ }, Symbol);
1466
+ }
1467
+ }
1468
+ registerPolyfill(polyfillMap);
1469
+ return {
1470
+ get Map() {
1361
1471
  return Map;
1362
- }};
1472
+ },
1473
+ get polyfillMap() {
1474
+ return polyfillMap;
1475
+ }
1476
+ };
1363
1477
  });
1364
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Object", [], function() {
1478
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Map.js" + '');
1479
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/Set.js", [], function() {
1365
1480
  "use strict";
1366
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/Object";
1367
- var $__16 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/utils")),
1368
- toInteger = $__16.toInteger,
1369
- toLength = $__16.toLength,
1370
- toObject = $__16.toObject,
1371
- isCallable = $__16.isCallable;
1372
- var $__16 = $traceurRuntime.assertObject($traceurRuntime),
1373
- defineProperty = $__16.defineProperty,
1374
- getOwnPropertyDescriptor = $__16.getOwnPropertyDescriptor,
1375
- getOwnPropertyNames = $__16.getOwnPropertyNames,
1376
- keys = $__16.keys,
1377
- privateNames = $__16.privateNames;
1378
- function is(left, right) {
1379
- if (left === right)
1380
- return left !== 0 || 1 / left === 1 / right;
1381
- return left !== left && right !== right;
1481
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/Set.js";
1482
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
1483
+ isObject = $__0.isObject,
1484
+ maybeAddIterator = $__0.maybeAddIterator,
1485
+ registerPolyfill = $__0.registerPolyfill;
1486
+ var Map = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Map.js").Map;
1487
+ var getOwnHashObject = $traceurRuntime.getOwnHashObject;
1488
+ var $hasOwnProperty = Object.prototype.hasOwnProperty;
1489
+ function initSet(set) {
1490
+ set.map_ = new Map();
1382
1491
  }
1383
- function assign(target) {
1384
- for (var i = 1; i < arguments.length; i++) {
1385
- var source = arguments[i];
1386
- var props = keys(source);
1387
- var p,
1388
- length = props.length;
1389
- for (p = 0; p < length; p++) {
1390
- var name = props[p];
1391
- if (privateNames[name])
1392
- continue;
1393
- target[name] = source[name];
1492
+ var Set = function Set() {
1493
+ var iterable = arguments[0];
1494
+ if (!isObject(this))
1495
+ throw new TypeError('Set called on incompatible type');
1496
+ if ($hasOwnProperty.call(this, 'map_')) {
1497
+ throw new TypeError('Set can not be reentrantly initialised');
1498
+ }
1499
+ initSet(this);
1500
+ if (iterable !== null && iterable !== undefined) {
1501
+ for (var $__4 = iterable[$traceurRuntime.toProperty(Symbol.iterator)](),
1502
+ $__5 = void 0; !($__5 = $__4.next()).done; ) {
1503
+ var item = $__5.value;
1504
+ {
1505
+ this.add(item);
1506
+ }
1394
1507
  }
1395
1508
  }
1396
- return target;
1397
- }
1398
- function mixin(target, source) {
1399
- var props = getOwnPropertyNames(source);
1400
- var p,
1401
- descriptor,
1402
- length = props.length;
1403
- for (p = 0; p < length; p++) {
1404
- var name = props[p];
1405
- if (privateNames[name])
1406
- continue;
1407
- descriptor = getOwnPropertyDescriptor(source, props[p]);
1408
- defineProperty(target, props[p], descriptor);
1509
+ };
1510
+ ($traceurRuntime.createClass)(Set, {
1511
+ get size() {
1512
+ return this.map_.size;
1513
+ },
1514
+ has: function(key) {
1515
+ return this.map_.has(key);
1516
+ },
1517
+ add: function(key) {
1518
+ this.map_.set(key, key);
1519
+ return this;
1520
+ },
1521
+ delete: function(key) {
1522
+ return this.map_.delete(key);
1523
+ },
1524
+ clear: function() {
1525
+ return this.map_.clear();
1526
+ },
1527
+ forEach: function(callbackFn) {
1528
+ var thisArg = arguments[1];
1529
+ var $__2 = this;
1530
+ return this.map_.forEach((function(value, key) {
1531
+ callbackFn.call(thisArg, key, key, $__2);
1532
+ }));
1533
+ },
1534
+ values: $traceurRuntime.initGeneratorFunction(function $__7() {
1535
+ var $__8,
1536
+ $__9;
1537
+ return $traceurRuntime.createGeneratorInstance(function($ctx) {
1538
+ while (true)
1539
+ switch ($ctx.state) {
1540
+ case 0:
1541
+ $__8 = this.map_.keys()[Symbol.iterator]();
1542
+ $ctx.sent = void 0;
1543
+ $ctx.action = 'next';
1544
+ $ctx.state = 12;
1545
+ break;
1546
+ case 12:
1547
+ $__9 = $__8[$ctx.action]($ctx.sentIgnoreThrow);
1548
+ $ctx.state = 9;
1549
+ break;
1550
+ case 9:
1551
+ $ctx.state = ($__9.done) ? 3 : 2;
1552
+ break;
1553
+ case 3:
1554
+ $ctx.sent = $__9.value;
1555
+ $ctx.state = -2;
1556
+ break;
1557
+ case 2:
1558
+ $ctx.state = 12;
1559
+ return $__9.value;
1560
+ default:
1561
+ return $ctx.end();
1562
+ }
1563
+ }, $__7, this);
1564
+ }),
1565
+ entries: $traceurRuntime.initGeneratorFunction(function $__10() {
1566
+ var $__11,
1567
+ $__12;
1568
+ return $traceurRuntime.createGeneratorInstance(function($ctx) {
1569
+ while (true)
1570
+ switch ($ctx.state) {
1571
+ case 0:
1572
+ $__11 = this.map_.entries()[Symbol.iterator]();
1573
+ $ctx.sent = void 0;
1574
+ $ctx.action = 'next';
1575
+ $ctx.state = 12;
1576
+ break;
1577
+ case 12:
1578
+ $__12 = $__11[$ctx.action]($ctx.sentIgnoreThrow);
1579
+ $ctx.state = 9;
1580
+ break;
1581
+ case 9:
1582
+ $ctx.state = ($__12.done) ? 3 : 2;
1583
+ break;
1584
+ case 3:
1585
+ $ctx.sent = $__12.value;
1586
+ $ctx.state = -2;
1587
+ break;
1588
+ case 2:
1589
+ $ctx.state = 12;
1590
+ return $__12.value;
1591
+ default:
1592
+ return $ctx.end();
1593
+ }
1594
+ }, $__10, this);
1595
+ })
1596
+ }, {});
1597
+ Object.defineProperty(Set.prototype, Symbol.iterator, {
1598
+ configurable: true,
1599
+ writable: true,
1600
+ value: Set.prototype.values
1601
+ });
1602
+ Object.defineProperty(Set.prototype, 'keys', {
1603
+ configurable: true,
1604
+ writable: true,
1605
+ value: Set.prototype.values
1606
+ });
1607
+ function polyfillSet(global) {
1608
+ var $__6 = global,
1609
+ Object = $__6.Object,
1610
+ Symbol = $__6.Symbol;
1611
+ if (!global.Set)
1612
+ global.Set = Set;
1613
+ var setPrototype = global.Set.prototype;
1614
+ if (setPrototype.values) {
1615
+ maybeAddIterator(setPrototype, setPrototype.values, Symbol);
1616
+ maybeAddIterator(Object.getPrototypeOf(new global.Set().values()), function() {
1617
+ return this;
1618
+ }, Symbol);
1409
1619
  }
1410
- return target;
1411
1620
  }
1621
+ registerPolyfill(polyfillSet);
1412
1622
  return {
1413
- get is() {
1414
- return is;
1415
- },
1416
- get assign() {
1417
- return assign;
1623
+ get Set() {
1624
+ return Set;
1418
1625
  },
1419
- get mixin() {
1420
- return mixin;
1626
+ get polyfillSet() {
1627
+ return polyfillSet;
1421
1628
  }
1422
1629
  };
1423
1630
  });
1424
- System.register("traceur-runtime@0.0.44/node_modules/rsvp/lib/rsvp/asap", [], function() {
1631
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Set.js" + '');
1632
+ System.registerModule("traceur-runtime@0.0.82/node_modules/rsvp/lib/rsvp/asap.js", [], function() {
1425
1633
  "use strict";
1426
- var __moduleName = "traceur-runtime@0.0.44/node_modules/rsvp/lib/rsvp/asap";
1427
- var $__default = function asap(callback, arg) {
1428
- var length = queue.push([callback, arg]);
1429
- if (length === 1) {
1634
+ var __moduleName = "traceur-runtime@0.0.82/node_modules/rsvp/lib/rsvp/asap.js";
1635
+ var len = 0;
1636
+ function asap(callback, arg) {
1637
+ queue[len] = callback;
1638
+ queue[len + 1] = arg;
1639
+ len += 2;
1640
+ if (len === 2) {
1430
1641
  scheduleFlush();
1431
1642
  }
1432
- };
1643
+ }
1644
+ var $__default = asap;
1433
1645
  var browserGlobal = (typeof window !== 'undefined') ? window : {};
1434
1646
  var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
1647
+ var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
1435
1648
  function useNextTick() {
1436
1649
  return function() {
1437
1650
  process.nextTick(flush);
@@ -1446,26 +1659,36 @@ System.register("traceur-runtime@0.0.44/node_modules/rsvp/lib/rsvp/asap", [], fu
1446
1659
  node.data = (iterations = ++iterations % 2);
1447
1660
  };
1448
1661
  }
1662
+ function useMessageChannel() {
1663
+ var channel = new MessageChannel();
1664
+ channel.port1.onmessage = flush;
1665
+ return function() {
1666
+ channel.port2.postMessage(0);
1667
+ };
1668
+ }
1449
1669
  function useSetTimeout() {
1450
1670
  return function() {
1451
1671
  setTimeout(flush, 1);
1452
1672
  };
1453
1673
  }
1454
- var queue = [];
1674
+ var queue = new Array(1000);
1455
1675
  function flush() {
1456
- for (var i = 0; i < queue.length; i++) {
1457
- var tuple = queue[i];
1458
- var callback = tuple[0],
1459
- arg = tuple[1];
1676
+ for (var i = 0; i < len; i += 2) {
1677
+ var callback = queue[i];
1678
+ var arg = queue[i + 1];
1460
1679
  callback(arg);
1680
+ queue[i] = undefined;
1681
+ queue[i + 1] = undefined;
1461
1682
  }
1462
- queue = [];
1683
+ len = 0;
1463
1684
  }
1464
1685
  var scheduleFlush;
1465
1686
  if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
1466
1687
  scheduleFlush = useNextTick();
1467
1688
  } else if (BrowserMutationObserver) {
1468
1689
  scheduleFlush = useMutationObserver();
1690
+ } else if (isWorker) {
1691
+ scheduleFlush = useMessageChannel();
1469
1692
  } else {
1470
1693
  scheduleFlush = useSetTimeout();
1471
1694
  }
@@ -1473,10 +1696,11 @@ System.register("traceur-runtime@0.0.44/node_modules/rsvp/lib/rsvp/asap", [], fu
1473
1696
  return $__default;
1474
1697
  }};
1475
1698
  });
1476
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Promise", [], function() {
1699
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/Promise.js", [], function() {
1477
1700
  "use strict";
1478
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/Promise";
1479
- var async = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/node_modules/rsvp/lib/rsvp/asap")).default;
1701
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/Promise.js";
1702
+ var async = System.get("traceur-runtime@0.0.82/node_modules/rsvp/lib/rsvp/asap.js").default;
1703
+ var registerPolyfill = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js").registerPolyfill;
1480
1704
  var promiseRaw = {};
1481
1705
  function isPromise(x) {
1482
1706
  return x && typeof x === 'object' && x.status_ !== undefined;
@@ -1540,7 +1764,7 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Promise", [], func
1540
1764
  }
1541
1765
  var Promise = function Promise(resolver) {
1542
1766
  if (resolver === promiseRaw)
1543
- return;
1767
+ return ;
1544
1768
  if (typeof resolver !== 'function')
1545
1769
  throw new TypeError;
1546
1770
  var promise = promiseInit(this);
@@ -1573,6 +1797,9 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Promise", [], func
1573
1797
  }, {
1574
1798
  resolve: function(x) {
1575
1799
  if (this === $Promise) {
1800
+ if (isPromise(x)) {
1801
+ return x;
1802
+ }
1576
1803
  return promiseSet(new $Promise(promiseRaw), +1, x);
1577
1804
  } else {
1578
1805
  return new this(function(resolve, reject) {
@@ -1589,34 +1816,34 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Promise", [], func
1589
1816
  }));
1590
1817
  }
1591
1818
  },
1592
- cast: function(x) {
1593
- if (x instanceof this)
1594
- return x;
1595
- if (isPromise(x)) {
1596
- var result = getDeferred(this);
1597
- chain(x, result.resolve, result.reject);
1598
- return result.promise;
1599
- }
1600
- return this.resolve(x);
1601
- },
1602
1819
  all: function(values) {
1603
1820
  var deferred = getDeferred(this);
1604
1821
  var resolutions = [];
1605
1822
  try {
1606
- var count = values.length;
1607
- if (count === 0) {
1608
- deferred.resolve(resolutions);
1609
- } else {
1610
- for (var i = 0; i < values.length; i++) {
1611
- this.resolve(values[i]).then(function(i, x) {
1612
- resolutions[i] = x;
1613
- if (--count === 0)
1614
- deferred.resolve(resolutions);
1615
- }.bind(undefined, i), (function(r) {
1823
+ var makeCountdownFunction = function(i) {
1824
+ return (function(x) {
1825
+ resolutions[i] = x;
1826
+ if (--count === 0)
1827
+ deferred.resolve(resolutions);
1828
+ });
1829
+ };
1830
+ var count = 0;
1831
+ var i = 0;
1832
+ for (var $__3 = values[$traceurRuntime.toProperty(Symbol.iterator)](),
1833
+ $__4 = void 0; !($__4 = $__3.next()).done; ) {
1834
+ var value = $__4.value;
1835
+ {
1836
+ var countdownFunction = makeCountdownFunction(i);
1837
+ this.resolve(value).then(countdownFunction, (function(r) {
1616
1838
  deferred.reject(r);
1617
1839
  }));
1840
+ ++i;
1841
+ ++count;
1618
1842
  }
1619
1843
  }
1844
+ if (count === 0) {
1845
+ deferred.resolve(resolutions);
1846
+ }
1620
1847
  } catch (e) {
1621
1848
  deferred.reject(e);
1622
1849
  }
@@ -1648,7 +1875,7 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Promise", [], func
1648
1875
  }
1649
1876
  function promiseDone(promise, status, value, reactions) {
1650
1877
  if (promise.status_ !== 0)
1651
- return;
1878
+ return ;
1652
1879
  promiseEnqueue(value, reactions);
1653
1880
  promiseSet(promise, status, value);
1654
1881
  }
@@ -1706,136 +1933,94 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Promise", [], func
1706
1933
  }
1707
1934
  return x;
1708
1935
  }
1709
- return {get Promise() {
1936
+ function polyfillPromise(global) {
1937
+ if (!global.Promise)
1938
+ global.Promise = Promise;
1939
+ }
1940
+ registerPolyfill(polyfillPromise);
1941
+ return {
1942
+ get Promise() {
1710
1943
  return Promise;
1711
- }};
1944
+ },
1945
+ get polyfillPromise() {
1946
+ return polyfillPromise;
1947
+ }
1948
+ };
1712
1949
  });
1713
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/Set", [], function() {
1950
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Promise.js" + '');
1951
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/StringIterator.js", [], function() {
1714
1952
  "use strict";
1715
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/Set";
1716
- var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/utils")).isObject;
1717
- var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/Map")).Map;
1718
- var getOwnHashObject = $traceurRuntime.getOwnHashObject;
1719
- var $hasOwnProperty = Object.prototype.hasOwnProperty;
1720
- function initSet(set) {
1721
- set.map_ = new Map();
1722
- }
1723
- var Set = function Set() {
1724
- var iterable = arguments[0];
1725
- if (!isObject(this))
1726
- throw new TypeError('Set called on incompatible type');
1727
- if ($hasOwnProperty.call(this, 'map_')) {
1728
- throw new TypeError('Set can not be reentrantly initialised');
1729
- }
1730
- initSet(this);
1731
- if (iterable !== null && iterable !== undefined) {
1732
- for (var $__21 = iterable[Symbol.iterator](),
1733
- $__22; !($__22 = $__21.next()).done; ) {
1734
- var item = $__22.value;
1735
- {
1736
- this.add(item);
1953
+ var $__2;
1954
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/StringIterator.js";
1955
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
1956
+ createIteratorResultObject = $__0.createIteratorResultObject,
1957
+ isObject = $__0.isObject;
1958
+ var toProperty = $traceurRuntime.toProperty;
1959
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1960
+ var iteratedString = Symbol('iteratedString');
1961
+ var stringIteratorNextIndex = Symbol('stringIteratorNextIndex');
1962
+ var StringIterator = function StringIterator() {};
1963
+ ($traceurRuntime.createClass)(StringIterator, ($__2 = {}, Object.defineProperty($__2, "next", {
1964
+ value: function() {
1965
+ var o = this;
1966
+ if (!isObject(o) || !hasOwnProperty.call(o, iteratedString)) {
1967
+ throw new TypeError('this must be a StringIterator object');
1968
+ }
1969
+ var s = o[toProperty(iteratedString)];
1970
+ if (s === undefined) {
1971
+ return createIteratorResultObject(undefined, true);
1972
+ }
1973
+ var position = o[toProperty(stringIteratorNextIndex)];
1974
+ var len = s.length;
1975
+ if (position >= len) {
1976
+ o[toProperty(iteratedString)] = undefined;
1977
+ return createIteratorResultObject(undefined, true);
1978
+ }
1979
+ var first = s.charCodeAt(position);
1980
+ var resultString;
1981
+ if (first < 0xD800 || first > 0xDBFF || position + 1 === len) {
1982
+ resultString = String.fromCharCode(first);
1983
+ } else {
1984
+ var second = s.charCodeAt(position + 1);
1985
+ if (second < 0xDC00 || second > 0xDFFF) {
1986
+ resultString = String.fromCharCode(first);
1987
+ } else {
1988
+ resultString = String.fromCharCode(first) + String.fromCharCode(second);
1737
1989
  }
1738
1990
  }
1739
- }
1740
- };
1741
- ($traceurRuntime.createClass)(Set, {
1742
- get size() {
1743
- return this.map_.size;
1744
- },
1745
- has: function(key) {
1746
- return this.map_.has(key);
1747
- },
1748
- add: function(key) {
1749
- return this.map_.set(key, true);
1750
- },
1751
- delete: function(key) {
1752
- return this.map_.delete(key);
1991
+ o[toProperty(stringIteratorNextIndex)] = position + resultString.length;
1992
+ return createIteratorResultObject(resultString, false);
1753
1993
  },
1754
- clear: function() {
1755
- return this.map_.clear();
1756
- },
1757
- forEach: function(callbackFn) {
1758
- var thisArg = arguments[1];
1759
- var $__19 = this;
1760
- return this.map_.forEach((function(value, key) {
1761
- callbackFn.call(thisArg, key, key, $__19);
1762
- }));
1994
+ configurable: true,
1995
+ enumerable: true,
1996
+ writable: true
1997
+ }), Object.defineProperty($__2, Symbol.iterator, {
1998
+ value: function() {
1999
+ return this;
1763
2000
  },
1764
- values: $traceurRuntime.initGeneratorFunction(function $__24() {
1765
- var $__25,
1766
- $__26;
1767
- return $traceurRuntime.createGeneratorInstance(function($ctx) {
1768
- while (true)
1769
- switch ($ctx.state) {
1770
- case 0:
1771
- $__25 = this.map_.keys()[Symbol.iterator]();
1772
- $ctx.sent = void 0;
1773
- $ctx.action = 'next';
1774
- $ctx.state = 12;
1775
- break;
1776
- case 12:
1777
- $__26 = $__25[$ctx.action]($ctx.sentIgnoreThrow);
1778
- $ctx.state = 9;
1779
- break;
1780
- case 9:
1781
- $ctx.state = ($__26.done) ? 3 : 2;
1782
- break;
1783
- case 3:
1784
- $ctx.sent = $__26.value;
1785
- $ctx.state = -2;
1786
- break;
1787
- case 2:
1788
- $ctx.state = 12;
1789
- return $__26.value;
1790
- default:
1791
- return $ctx.end();
1792
- }
1793
- }, $__24, this);
1794
- }),
1795
- keys: $traceurRuntime.initGeneratorFunction(function $__27() {
1796
- var $__28,
1797
- $__29;
1798
- return $traceurRuntime.createGeneratorInstance(function($ctx) {
1799
- while (true)
1800
- switch ($ctx.state) {
1801
- case 0:
1802
- $__28 = this.map_.keys()[Symbol.iterator]();
1803
- $ctx.sent = void 0;
1804
- $ctx.action = 'next';
1805
- $ctx.state = 12;
1806
- break;
1807
- case 12:
1808
- $__29 = $__28[$ctx.action]($ctx.sentIgnoreThrow);
1809
- $ctx.state = 9;
1810
- break;
1811
- case 9:
1812
- $ctx.state = ($__29.done) ? 3 : 2;
1813
- break;
1814
- case 3:
1815
- $ctx.sent = $__29.value;
1816
- $ctx.state = -2;
1817
- break;
1818
- case 2:
1819
- $ctx.state = 12;
1820
- return $__29.value;
1821
- default:
1822
- return $ctx.end();
1823
- }
1824
- }, $__27, this);
1825
- })
1826
- }, {});
1827
- Object.defineProperty(Set.prototype, Symbol.iterator, {
1828
2001
  configurable: true,
1829
- writable: true,
1830
- value: Set.prototype.values
1831
- });
1832
- return {get Set() {
1833
- return Set;
2002
+ enumerable: true,
2003
+ writable: true
2004
+ }), $__2), {});
2005
+ function createStringIterator(string) {
2006
+ var s = String(string);
2007
+ var iterator = Object.create(StringIterator.prototype);
2008
+ iterator[toProperty(iteratedString)] = s;
2009
+ iterator[toProperty(stringIteratorNextIndex)] = 0;
2010
+ return iterator;
2011
+ }
2012
+ return {get createStringIterator() {
2013
+ return createStringIterator;
1834
2014
  }};
1835
2015
  });
1836
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/String", [], function() {
2016
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/String.js", [], function() {
1837
2017
  "use strict";
1838
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/String";
2018
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/String.js";
2019
+ var createStringIterator = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/StringIterator.js").createStringIterator;
2020
+ var $__1 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
2021
+ maybeAddFunctions = $__1.maybeAddFunctions,
2022
+ maybeAddIterator = $__1.maybeAddIterator,
2023
+ registerPolyfill = $__1.registerPolyfill;
1839
2024
  var $toString = Object.prototype.toString;
1840
2025
  var $indexOf = String.prototype.indexOf;
1841
2026
  var $lastIndexOf = String.prototype.lastIndexOf;
@@ -1880,20 +2065,26 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/String", [], funct
1880
2065
  }
1881
2066
  return $lastIndexOf.call(string, searchString, start) == start;
1882
2067
  }
1883
- function contains(search) {
2068
+ function includes(search) {
1884
2069
  if (this == null) {
1885
2070
  throw TypeError();
1886
2071
  }
1887
2072
  var string = String(this);
2073
+ if (search && $toString.call(search) == '[object RegExp]') {
2074
+ throw TypeError();
2075
+ }
1888
2076
  var stringLength = string.length;
1889
2077
  var searchString = String(search);
1890
2078
  var searchLength = searchString.length;
1891
2079
  var position = arguments.length > 1 ? arguments[1] : undefined;
1892
2080
  var pos = position ? Number(position) : 0;
1893
- if (isNaN(pos)) {
2081
+ if (pos != pos) {
1894
2082
  pos = 0;
1895
2083
  }
1896
2084
  var start = Math.min(Math.max(pos, 0), stringLength);
2085
+ if (searchLength + start > stringLength) {
2086
+ return false;
2087
+ }
1897
2088
  return $indexOf.call(string, searchString, pos) != -1;
1898
2089
  }
1899
2090
  function repeat(count) {
@@ -1980,6 +2171,18 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/String", [], funct
1980
2171
  }
1981
2172
  return String.fromCharCode.apply(null, codeUnits);
1982
2173
  }
2174
+ function stringPrototypeIterator() {
2175
+ var o = $traceurRuntime.checkObjectCoercible(this);
2176
+ var s = String(o);
2177
+ return createStringIterator(s);
2178
+ }
2179
+ function polyfillString(global) {
2180
+ var String = global.String;
2181
+ maybeAddFunctions(String.prototype, ['codePointAt', codePointAt, 'endsWith', endsWith, 'includes', includes, 'repeat', repeat, 'startsWith', startsWith]);
2182
+ maybeAddFunctions(String, ['fromCodePoint', fromCodePoint, 'raw', raw]);
2183
+ maybeAddIterator(String.prototype, stringPrototypeIterator, Symbol);
2184
+ }
2185
+ registerPolyfill(polyfillString);
1983
2186
  return {
1984
2187
  get startsWith() {
1985
2188
  return startsWith;
@@ -1987,8 +2190,8 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/String", [], funct
1987
2190
  get endsWith() {
1988
2191
  return endsWith;
1989
2192
  },
1990
- get contains() {
1991
- return contains;
2193
+ get includes() {
2194
+ return includes;
1992
2195
  },
1993
2196
  get repeat() {
1994
2197
  return repeat;
@@ -2001,101 +2204,667 @@ System.register("traceur-runtime@0.0.44/src/runtime/polyfills/String", [], funct
2001
2204
  },
2002
2205
  get fromCodePoint() {
2003
2206
  return fromCodePoint;
2207
+ },
2208
+ get stringPrototypeIterator() {
2209
+ return stringPrototypeIterator;
2210
+ },
2211
+ get polyfillString() {
2212
+ return polyfillString;
2004
2213
  }
2005
2214
  };
2006
2215
  });
2007
- System.register("traceur-runtime@0.0.44/src/runtime/polyfills/polyfills", [], function() {
2216
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/String.js" + '');
2217
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/ArrayIterator.js", [], function() {
2008
2218
  "use strict";
2009
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfills/polyfills";
2010
- var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/Map")).Map;
2011
- var Set = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/Set")).Set;
2012
- var Promise = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/Promise")).Promise;
2013
- var $__30 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/String")),
2014
- codePointAt = $__30.codePointAt,
2015
- contains = $__30.contains,
2016
- endsWith = $__30.endsWith,
2017
- fromCodePoint = $__30.fromCodePoint,
2018
- repeat = $__30.repeat,
2019
- raw = $__30.raw,
2020
- startsWith = $__30.startsWith;
2021
- var $__30 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/Array")),
2022
- fill = $__30.fill,
2023
- find = $__30.find,
2024
- findIndex = $__30.findIndex,
2025
- from = $__30.from;
2026
- var $__30 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/ArrayIterator")),
2027
- entries = $__30.entries,
2028
- keys = $__30.keys,
2029
- values = $__30.values;
2030
- var $__30 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/Object")),
2031
- assign = $__30.assign,
2032
- is = $__30.is,
2033
- mixin = $__30.mixin;
2034
- function maybeDefineMethod(object, name, value) {
2035
- if (!(name in object)) {
2036
- Object.defineProperty(object, name, {
2037
- value: value,
2038
- configurable: true,
2039
- enumerable: false,
2040
- writable: true
2041
- });
2219
+ var $__2;
2220
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/ArrayIterator.js";
2221
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
2222
+ toObject = $__0.toObject,
2223
+ toUint32 = $__0.toUint32,
2224
+ createIteratorResultObject = $__0.createIteratorResultObject;
2225
+ var ARRAY_ITERATOR_KIND_KEYS = 1;
2226
+ var ARRAY_ITERATOR_KIND_VALUES = 2;
2227
+ var ARRAY_ITERATOR_KIND_ENTRIES = 3;
2228
+ var ArrayIterator = function ArrayIterator() {};
2229
+ ($traceurRuntime.createClass)(ArrayIterator, ($__2 = {}, Object.defineProperty($__2, "next", {
2230
+ value: function() {
2231
+ var iterator = toObject(this);
2232
+ var array = iterator.iteratorObject_;
2233
+ if (!array) {
2234
+ throw new TypeError('Object is not an ArrayIterator');
2235
+ }
2236
+ var index = iterator.arrayIteratorNextIndex_;
2237
+ var itemKind = iterator.arrayIterationKind_;
2238
+ var length = toUint32(array.length);
2239
+ if (index >= length) {
2240
+ iterator.arrayIteratorNextIndex_ = Infinity;
2241
+ return createIteratorResultObject(undefined, true);
2242
+ }
2243
+ iterator.arrayIteratorNextIndex_ = index + 1;
2244
+ if (itemKind == ARRAY_ITERATOR_KIND_VALUES)
2245
+ return createIteratorResultObject(array[index], false);
2246
+ if (itemKind == ARRAY_ITERATOR_KIND_ENTRIES)
2247
+ return createIteratorResultObject([index, array[index]], false);
2248
+ return createIteratorResultObject(index, false);
2249
+ },
2250
+ configurable: true,
2251
+ enumerable: true,
2252
+ writable: true
2253
+ }), Object.defineProperty($__2, Symbol.iterator, {
2254
+ value: function() {
2255
+ return this;
2256
+ },
2257
+ configurable: true,
2258
+ enumerable: true,
2259
+ writable: true
2260
+ }), $__2), {});
2261
+ function createArrayIterator(array, kind) {
2262
+ var object = toObject(array);
2263
+ var iterator = new ArrayIterator;
2264
+ iterator.iteratorObject_ = object;
2265
+ iterator.arrayIteratorNextIndex_ = 0;
2266
+ iterator.arrayIterationKind_ = kind;
2267
+ return iterator;
2268
+ }
2269
+ function entries() {
2270
+ return createArrayIterator(this, ARRAY_ITERATOR_KIND_ENTRIES);
2271
+ }
2272
+ function keys() {
2273
+ return createArrayIterator(this, ARRAY_ITERATOR_KIND_KEYS);
2274
+ }
2275
+ function values() {
2276
+ return createArrayIterator(this, ARRAY_ITERATOR_KIND_VALUES);
2277
+ }
2278
+ return {
2279
+ get entries() {
2280
+ return entries;
2281
+ },
2282
+ get keys() {
2283
+ return keys;
2284
+ },
2285
+ get values() {
2286
+ return values;
2287
+ }
2288
+ };
2289
+ });
2290
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/Array.js", [], function() {
2291
+ "use strict";
2292
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/Array.js";
2293
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/ArrayIterator.js"),
2294
+ entries = $__0.entries,
2295
+ keys = $__0.keys,
2296
+ values = $__0.values;
2297
+ var $__1 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
2298
+ checkIterable = $__1.checkIterable,
2299
+ isCallable = $__1.isCallable,
2300
+ isConstructor = $__1.isConstructor,
2301
+ maybeAddFunctions = $__1.maybeAddFunctions,
2302
+ maybeAddIterator = $__1.maybeAddIterator,
2303
+ registerPolyfill = $__1.registerPolyfill,
2304
+ toInteger = $__1.toInteger,
2305
+ toLength = $__1.toLength,
2306
+ toObject = $__1.toObject;
2307
+ function from(arrLike) {
2308
+ var mapFn = arguments[1];
2309
+ var thisArg = arguments[2];
2310
+ var C = this;
2311
+ var items = toObject(arrLike);
2312
+ var mapping = mapFn !== undefined;
2313
+ var k = 0;
2314
+ var arr,
2315
+ len;
2316
+ if (mapping && !isCallable(mapFn)) {
2317
+ throw TypeError();
2318
+ }
2319
+ if (checkIterable(items)) {
2320
+ arr = isConstructor(C) ? new C() : [];
2321
+ for (var $__2 = items[$traceurRuntime.toProperty(Symbol.iterator)](),
2322
+ $__3 = void 0; !($__3 = $__2.next()).done; ) {
2323
+ var item = $__3.value;
2324
+ {
2325
+ if (mapping) {
2326
+ arr[k] = mapFn.call(thisArg, item, k);
2327
+ } else {
2328
+ arr[k] = item;
2329
+ }
2330
+ k++;
2331
+ }
2332
+ }
2333
+ arr.length = k;
2334
+ return arr;
2042
2335
  }
2336
+ len = toLength(items.length);
2337
+ arr = isConstructor(C) ? new C(len) : new Array(len);
2338
+ for (; k < len; k++) {
2339
+ if (mapping) {
2340
+ arr[k] = typeof thisArg === 'undefined' ? mapFn(items[k], k) : mapFn.call(thisArg, items[k], k);
2341
+ } else {
2342
+ arr[k] = items[k];
2343
+ }
2344
+ }
2345
+ arr.length = len;
2346
+ return arr;
2043
2347
  }
2044
- function maybeAddFunctions(object, functions) {
2045
- for (var i = 0; i < functions.length; i += 2) {
2046
- var name = functions[i];
2047
- var value = functions[i + 1];
2048
- maybeDefineMethod(object, name, value);
2348
+ function of() {
2349
+ for (var items = [],
2350
+ $__4 = 0; $__4 < arguments.length; $__4++)
2351
+ items[$__4] = arguments[$__4];
2352
+ var C = this;
2353
+ var len = items.length;
2354
+ var arr = isConstructor(C) ? new C(len) : new Array(len);
2355
+ for (var k = 0; k < len; k++) {
2356
+ arr[k] = items[k];
2049
2357
  }
2358
+ arr.length = len;
2359
+ return arr;
2050
2360
  }
2051
- function polyfillPromise(global) {
2052
- if (!global.Promise)
2053
- global.Promise = Promise;
2361
+ function fill(value) {
2362
+ var start = arguments[1] !== (void 0) ? arguments[1] : 0;
2363
+ var end = arguments[2];
2364
+ var object = toObject(this);
2365
+ var len = toLength(object.length);
2366
+ var fillStart = toInteger(start);
2367
+ var fillEnd = end !== undefined ? toInteger(end) : len;
2368
+ fillStart = fillStart < 0 ? Math.max(len + fillStart, 0) : Math.min(fillStart, len);
2369
+ fillEnd = fillEnd < 0 ? Math.max(len + fillEnd, 0) : Math.min(fillEnd, len);
2370
+ while (fillStart < fillEnd) {
2371
+ object[fillStart] = value;
2372
+ fillStart++;
2373
+ }
2374
+ return object;
2054
2375
  }
2055
- function polyfillCollections(global) {
2056
- if (!global.Map)
2057
- global.Map = Map;
2058
- if (!global.Set)
2059
- global.Set = Set;
2376
+ function find(predicate) {
2377
+ var thisArg = arguments[1];
2378
+ return findHelper(this, predicate, thisArg);
2060
2379
  }
2061
- function polyfillString(String) {
2062
- maybeAddFunctions(String.prototype, ['codePointAt', codePointAt, 'contains', contains, 'endsWith', endsWith, 'startsWith', startsWith, 'repeat', repeat]);
2063
- maybeAddFunctions(String, ['fromCodePoint', fromCodePoint, 'raw', raw]);
2380
+ function findIndex(predicate) {
2381
+ var thisArg = arguments[1];
2382
+ return findHelper(this, predicate, thisArg, true);
2383
+ }
2384
+ function findHelper(self, predicate) {
2385
+ var thisArg = arguments[2];
2386
+ var returnIndex = arguments[3] !== (void 0) ? arguments[3] : false;
2387
+ var object = toObject(self);
2388
+ var len = toLength(object.length);
2389
+ if (!isCallable(predicate)) {
2390
+ throw TypeError();
2391
+ }
2392
+ for (var i = 0; i < len; i++) {
2393
+ var value = object[i];
2394
+ if (predicate.call(thisArg, value, i, object)) {
2395
+ return returnIndex ? i : value;
2396
+ }
2397
+ }
2398
+ return returnIndex ? -1 : undefined;
2064
2399
  }
2065
- function polyfillArray(Array, Symbol) {
2400
+ function polyfillArray(global) {
2401
+ var $__5 = global,
2402
+ Array = $__5.Array,
2403
+ Object = $__5.Object,
2404
+ Symbol = $__5.Symbol;
2066
2405
  maybeAddFunctions(Array.prototype, ['entries', entries, 'keys', keys, 'values', values, 'fill', fill, 'find', find, 'findIndex', findIndex]);
2067
- maybeAddFunctions(Array, ['from', from]);
2068
- if (Symbol && Symbol.iterator) {
2069
- Object.defineProperty(Array.prototype, Symbol.iterator, {
2070
- value: values,
2071
- configurable: true,
2072
- enumerable: false,
2073
- writable: true
2074
- });
2406
+ maybeAddFunctions(Array, ['from', from, 'of', of]);
2407
+ maybeAddIterator(Array.prototype, values, Symbol);
2408
+ maybeAddIterator(Object.getPrototypeOf([].values()), function() {
2409
+ return this;
2410
+ }, Symbol);
2411
+ }
2412
+ registerPolyfill(polyfillArray);
2413
+ return {
2414
+ get from() {
2415
+ return from;
2416
+ },
2417
+ get of() {
2418
+ return of;
2419
+ },
2420
+ get fill() {
2421
+ return fill;
2422
+ },
2423
+ get find() {
2424
+ return find;
2425
+ },
2426
+ get findIndex() {
2427
+ return findIndex;
2428
+ },
2429
+ get polyfillArray() {
2430
+ return polyfillArray;
2075
2431
  }
2432
+ };
2433
+ });
2434
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Array.js" + '');
2435
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/Object.js", [], function() {
2436
+ "use strict";
2437
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/Object.js";
2438
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
2439
+ maybeAddFunctions = $__0.maybeAddFunctions,
2440
+ registerPolyfill = $__0.registerPolyfill;
2441
+ var $__1 = $traceurRuntime,
2442
+ defineProperty = $__1.defineProperty,
2443
+ getOwnPropertyDescriptor = $__1.getOwnPropertyDescriptor,
2444
+ getOwnPropertyNames = $__1.getOwnPropertyNames,
2445
+ isPrivateName = $__1.isPrivateName,
2446
+ keys = $__1.keys;
2447
+ function is(left, right) {
2448
+ if (left === right)
2449
+ return left !== 0 || 1 / left === 1 / right;
2450
+ return left !== left && right !== right;
2076
2451
  }
2077
- function polyfillObject(Object) {
2452
+ function assign(target) {
2453
+ for (var i = 1; i < arguments.length; i++) {
2454
+ var source = arguments[i];
2455
+ var props = source == null ? [] : keys(source);
2456
+ var p = void 0,
2457
+ length = props.length;
2458
+ for (p = 0; p < length; p++) {
2459
+ var name = props[p];
2460
+ if (isPrivateName(name))
2461
+ continue;
2462
+ target[name] = source[name];
2463
+ }
2464
+ }
2465
+ return target;
2466
+ }
2467
+ function mixin(target, source) {
2468
+ var props = getOwnPropertyNames(source);
2469
+ var p,
2470
+ descriptor,
2471
+ length = props.length;
2472
+ for (p = 0; p < length; p++) {
2473
+ var name = props[p];
2474
+ if (isPrivateName(name))
2475
+ continue;
2476
+ descriptor = getOwnPropertyDescriptor(source, props[p]);
2477
+ defineProperty(target, props[p], descriptor);
2478
+ }
2479
+ return target;
2480
+ }
2481
+ function polyfillObject(global) {
2482
+ var Object = global.Object;
2078
2483
  maybeAddFunctions(Object, ['assign', assign, 'is', is, 'mixin', mixin]);
2079
2484
  }
2080
- function polyfill(global) {
2081
- polyfillPromise(global);
2082
- polyfillCollections(global);
2083
- polyfillString(global.String);
2084
- polyfillArray(global.Array, global.Symbol);
2085
- polyfillObject(global.Object);
2485
+ registerPolyfill(polyfillObject);
2486
+ return {
2487
+ get is() {
2488
+ return is;
2489
+ },
2490
+ get assign() {
2491
+ return assign;
2492
+ },
2493
+ get mixin() {
2494
+ return mixin;
2495
+ },
2496
+ get polyfillObject() {
2497
+ return polyfillObject;
2498
+ }
2499
+ };
2500
+ });
2501
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Object.js" + '');
2502
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/Number.js", [], function() {
2503
+ "use strict";
2504
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/Number.js";
2505
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
2506
+ isNumber = $__0.isNumber,
2507
+ maybeAddConsts = $__0.maybeAddConsts,
2508
+ maybeAddFunctions = $__0.maybeAddFunctions,
2509
+ registerPolyfill = $__0.registerPolyfill,
2510
+ toInteger = $__0.toInteger;
2511
+ var $abs = Math.abs;
2512
+ var $isFinite = isFinite;
2513
+ var $isNaN = isNaN;
2514
+ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
2515
+ var MIN_SAFE_INTEGER = -Math.pow(2, 53) + 1;
2516
+ var EPSILON = Math.pow(2, -52);
2517
+ function NumberIsFinite(number) {
2518
+ return isNumber(number) && $isFinite(number);
2519
+ }
2520
+ ;
2521
+ function isInteger(number) {
2522
+ return NumberIsFinite(number) && toInteger(number) === number;
2523
+ }
2524
+ function NumberIsNaN(number) {
2525
+ return isNumber(number) && $isNaN(number);
2526
+ }
2527
+ ;
2528
+ function isSafeInteger(number) {
2529
+ if (NumberIsFinite(number)) {
2530
+ var integral = toInteger(number);
2531
+ if (integral === number)
2532
+ return $abs(integral) <= MAX_SAFE_INTEGER;
2533
+ }
2534
+ return false;
2535
+ }
2536
+ function polyfillNumber(global) {
2537
+ var Number = global.Number;
2538
+ maybeAddConsts(Number, ['MAX_SAFE_INTEGER', MAX_SAFE_INTEGER, 'MIN_SAFE_INTEGER', MIN_SAFE_INTEGER, 'EPSILON', EPSILON]);
2539
+ maybeAddFunctions(Number, ['isFinite', NumberIsFinite, 'isInteger', isInteger, 'isNaN', NumberIsNaN, 'isSafeInteger', isSafeInteger]);
2540
+ }
2541
+ registerPolyfill(polyfillNumber);
2542
+ return {
2543
+ get MAX_SAFE_INTEGER() {
2544
+ return MAX_SAFE_INTEGER;
2545
+ },
2546
+ get MIN_SAFE_INTEGER() {
2547
+ return MIN_SAFE_INTEGER;
2548
+ },
2549
+ get EPSILON() {
2550
+ return EPSILON;
2551
+ },
2552
+ get isFinite() {
2553
+ return NumberIsFinite;
2554
+ },
2555
+ get isInteger() {
2556
+ return isInteger;
2557
+ },
2558
+ get isNaN() {
2559
+ return NumberIsNaN;
2560
+ },
2561
+ get isSafeInteger() {
2562
+ return isSafeInteger;
2563
+ },
2564
+ get polyfillNumber() {
2565
+ return polyfillNumber;
2566
+ }
2567
+ };
2568
+ });
2569
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Number.js" + '');
2570
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/Math.js", [], function() {
2571
+ "use strict";
2572
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/Math.js";
2573
+ var $__0 = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js"),
2574
+ maybeAddFunctions = $__0.maybeAddFunctions,
2575
+ registerPolyfill = $__0.registerPolyfill,
2576
+ toUint32 = $__0.toUint32;
2577
+ var $isFinite = isFinite;
2578
+ var $isNaN = isNaN;
2579
+ var $__1 = Math,
2580
+ abs = $__1.abs,
2581
+ ceil = $__1.ceil,
2582
+ exp = $__1.exp,
2583
+ floor = $__1.floor,
2584
+ log = $__1.log,
2585
+ pow = $__1.pow,
2586
+ sqrt = $__1.sqrt;
2587
+ function clz32(x) {
2588
+ x = toUint32(+x);
2589
+ if (x == 0)
2590
+ return 32;
2591
+ var result = 0;
2592
+ if ((x & 0xFFFF0000) === 0) {
2593
+ x <<= 16;
2594
+ result += 16;
2595
+ }
2596
+ ;
2597
+ if ((x & 0xFF000000) === 0) {
2598
+ x <<= 8;
2599
+ result += 8;
2600
+ }
2601
+ ;
2602
+ if ((x & 0xF0000000) === 0) {
2603
+ x <<= 4;
2604
+ result += 4;
2605
+ }
2606
+ ;
2607
+ if ((x & 0xC0000000) === 0) {
2608
+ x <<= 2;
2609
+ result += 2;
2610
+ }
2611
+ ;
2612
+ if ((x & 0x80000000) === 0) {
2613
+ x <<= 1;
2614
+ result += 1;
2615
+ }
2616
+ ;
2617
+ return result;
2086
2618
  }
2087
- polyfill(this);
2619
+ function imul(x, y) {
2620
+ x = toUint32(+x);
2621
+ y = toUint32(+y);
2622
+ var xh = (x >>> 16) & 0xffff;
2623
+ var xl = x & 0xffff;
2624
+ var yh = (y >>> 16) & 0xffff;
2625
+ var yl = y & 0xffff;
2626
+ return xl * yl + (((xh * yl + xl * yh) << 16) >>> 0) | 0;
2627
+ }
2628
+ function sign(x) {
2629
+ x = +x;
2630
+ if (x > 0)
2631
+ return 1;
2632
+ if (x < 0)
2633
+ return -1;
2634
+ return x;
2635
+ }
2636
+ function log10(x) {
2637
+ return log(x) * 0.434294481903251828;
2638
+ }
2639
+ function log2(x) {
2640
+ return log(x) * 1.442695040888963407;
2641
+ }
2642
+ function log1p(x) {
2643
+ x = +x;
2644
+ if (x < -1 || $isNaN(x)) {
2645
+ return NaN;
2646
+ }
2647
+ if (x === 0 || x === Infinity) {
2648
+ return x;
2649
+ }
2650
+ if (x === -1) {
2651
+ return -Infinity;
2652
+ }
2653
+ var result = 0;
2654
+ var n = 50;
2655
+ if (x < 0 || x > 1) {
2656
+ return log(1 + x);
2657
+ }
2658
+ for (var i = 1; i < n; i++) {
2659
+ if ((i % 2) === 0) {
2660
+ result -= pow(x, i) / i;
2661
+ } else {
2662
+ result += pow(x, i) / i;
2663
+ }
2664
+ }
2665
+ return result;
2666
+ }
2667
+ function expm1(x) {
2668
+ x = +x;
2669
+ if (x === -Infinity) {
2670
+ return -1;
2671
+ }
2672
+ if (!$isFinite(x) || x === 0) {
2673
+ return x;
2674
+ }
2675
+ return exp(x) - 1;
2676
+ }
2677
+ function cosh(x) {
2678
+ x = +x;
2679
+ if (x === 0) {
2680
+ return 1;
2681
+ }
2682
+ if ($isNaN(x)) {
2683
+ return NaN;
2684
+ }
2685
+ if (!$isFinite(x)) {
2686
+ return Infinity;
2687
+ }
2688
+ if (x < 0) {
2689
+ x = -x;
2690
+ }
2691
+ if (x > 21) {
2692
+ return exp(x) / 2;
2693
+ }
2694
+ return (exp(x) + exp(-x)) / 2;
2695
+ }
2696
+ function sinh(x) {
2697
+ x = +x;
2698
+ if (!$isFinite(x) || x === 0) {
2699
+ return x;
2700
+ }
2701
+ return (exp(x) - exp(-x)) / 2;
2702
+ }
2703
+ function tanh(x) {
2704
+ x = +x;
2705
+ if (x === 0)
2706
+ return x;
2707
+ if (!$isFinite(x))
2708
+ return sign(x);
2709
+ var exp1 = exp(x);
2710
+ var exp2 = exp(-x);
2711
+ return (exp1 - exp2) / (exp1 + exp2);
2712
+ }
2713
+ function acosh(x) {
2714
+ x = +x;
2715
+ if (x < 1)
2716
+ return NaN;
2717
+ if (!$isFinite(x))
2718
+ return x;
2719
+ return log(x + sqrt(x + 1) * sqrt(x - 1));
2720
+ }
2721
+ function asinh(x) {
2722
+ x = +x;
2723
+ if (x === 0 || !$isFinite(x))
2724
+ return x;
2725
+ if (x > 0)
2726
+ return log(x + sqrt(x * x + 1));
2727
+ return -log(-x + sqrt(x * x + 1));
2728
+ }
2729
+ function atanh(x) {
2730
+ x = +x;
2731
+ if (x === -1) {
2732
+ return -Infinity;
2733
+ }
2734
+ if (x === 1) {
2735
+ return Infinity;
2736
+ }
2737
+ if (x === 0) {
2738
+ return x;
2739
+ }
2740
+ if ($isNaN(x) || x < -1 || x > 1) {
2741
+ return NaN;
2742
+ }
2743
+ return 0.5 * log((1 + x) / (1 - x));
2744
+ }
2745
+ function hypot(x, y) {
2746
+ var length = arguments.length;
2747
+ var args = new Array(length);
2748
+ var max = 0;
2749
+ for (var i = 0; i < length; i++) {
2750
+ var n = arguments[i];
2751
+ n = +n;
2752
+ if (n === Infinity || n === -Infinity)
2753
+ return Infinity;
2754
+ n = abs(n);
2755
+ if (n > max)
2756
+ max = n;
2757
+ args[i] = n;
2758
+ }
2759
+ if (max === 0)
2760
+ max = 1;
2761
+ var sum = 0;
2762
+ var compensation = 0;
2763
+ for (var i = 0; i < length; i++) {
2764
+ var n = args[i] / max;
2765
+ var summand = n * n - compensation;
2766
+ var preliminary = sum + summand;
2767
+ compensation = (preliminary - sum) - summand;
2768
+ sum = preliminary;
2769
+ }
2770
+ return sqrt(sum) * max;
2771
+ }
2772
+ function trunc(x) {
2773
+ x = +x;
2774
+ if (x > 0)
2775
+ return floor(x);
2776
+ if (x < 0)
2777
+ return ceil(x);
2778
+ return x;
2779
+ }
2780
+ var f32 = new Float32Array(1);
2781
+ function fround(x) {
2782
+ f32[0] = +x;
2783
+ return f32[0];
2784
+ }
2785
+ function cbrt(x) {
2786
+ x = +x;
2787
+ if (x === 0)
2788
+ return x;
2789
+ var negate = x < 0;
2790
+ if (negate)
2791
+ x = -x;
2792
+ var result = pow(x, 1 / 3);
2793
+ return negate ? -result : result;
2794
+ }
2795
+ function polyfillMath(global) {
2796
+ var Math = global.Math;
2797
+ maybeAddFunctions(Math, ['acosh', acosh, 'asinh', asinh, 'atanh', atanh, 'cbrt', cbrt, 'clz32', clz32, 'cosh', cosh, 'expm1', expm1, 'fround', fround, 'hypot', hypot, 'imul', imul, 'log10', log10, 'log1p', log1p, 'log2', log2, 'sign', sign, 'sinh', sinh, 'tanh', tanh, 'trunc', trunc]);
2798
+ }
2799
+ registerPolyfill(polyfillMath);
2800
+ return {
2801
+ get clz32() {
2802
+ return clz32;
2803
+ },
2804
+ get imul() {
2805
+ return imul;
2806
+ },
2807
+ get sign() {
2808
+ return sign;
2809
+ },
2810
+ get log10() {
2811
+ return log10;
2812
+ },
2813
+ get log2() {
2814
+ return log2;
2815
+ },
2816
+ get log1p() {
2817
+ return log1p;
2818
+ },
2819
+ get expm1() {
2820
+ return expm1;
2821
+ },
2822
+ get cosh() {
2823
+ return cosh;
2824
+ },
2825
+ get sinh() {
2826
+ return sinh;
2827
+ },
2828
+ get tanh() {
2829
+ return tanh;
2830
+ },
2831
+ get acosh() {
2832
+ return acosh;
2833
+ },
2834
+ get asinh() {
2835
+ return asinh;
2836
+ },
2837
+ get atanh() {
2838
+ return atanh;
2839
+ },
2840
+ get hypot() {
2841
+ return hypot;
2842
+ },
2843
+ get trunc() {
2844
+ return trunc;
2845
+ },
2846
+ get fround() {
2847
+ return fround;
2848
+ },
2849
+ get cbrt() {
2850
+ return cbrt;
2851
+ },
2852
+ get polyfillMath() {
2853
+ return polyfillMath;
2854
+ }
2855
+ };
2856
+ });
2857
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/Math.js" + '');
2858
+ System.registerModule("traceur-runtime@0.0.82/src/runtime/polyfills/polyfills.js", [], function() {
2859
+ "use strict";
2860
+ var __moduleName = "traceur-runtime@0.0.82/src/runtime/polyfills/polyfills.js";
2861
+ var polyfillAll = System.get("traceur-runtime@0.0.82/src/runtime/polyfills/utils.js").polyfillAll;
2862
+ polyfillAll(Reflect.global);
2088
2863
  var setupGlobals = $traceurRuntime.setupGlobals;
2089
2864
  $traceurRuntime.setupGlobals = function(global) {
2090
2865
  setupGlobals(global);
2091
- polyfill(global);
2866
+ polyfillAll(global);
2092
2867
  };
2093
2868
  return {};
2094
2869
  });
2095
- System.register("traceur-runtime@0.0.44/src/runtime/polyfill-import", [], function() {
2096
- "use strict";
2097
- var __moduleName = "traceur-runtime@0.0.44/src/runtime/polyfill-import";
2098
- var $__32 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.44/src/runtime/polyfills/polyfills"));
2099
- return {};
2100
- });
2101
- System.get("traceur-runtime@0.0.44/src/runtime/polyfill-import" + '');
2870
+ System.get("traceur-runtime@0.0.82/src/runtime/polyfills/polyfills.js" + '');