@babel/test262-stream 1.4.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/LICENSE-BOCOUP.txt +27 -0
  2. package/LICENSE.txt +1 -1
  3. package/README.md +11 -1
  4. package/lib/builder.js +50 -15
  5. package/lib/compile.js +14 -11
  6. package/lib/create-scenarios.js +41 -10
  7. package/lib/index.d.ts +137 -0
  8. package/lib/index.js +202 -58
  9. package/lib/test-file.js +34 -11
  10. package/package.json +18 -9
  11. package/.jshintignore +0 -2
  12. package/.jshintrc +0 -6
  13. package/.travis.yml +0 -5
  14. package/CONTRIBUTING.md +0 -37
  15. package/test/collateral/invalid-missing-harness/fake-test262/test/a-test-file.js +0 -16
  16. package/test/collateral/invalid-version-other-accepted/fake-test262/harness/assert.js +0 -17
  17. package/test/collateral/invalid-version-other-accepted/fake-test262/harness/doneprintHandle.js +0 -6
  18. package/test/collateral/invalid-version-other-accepted/fake-test262/harness/sta.js +0 -12
  19. package/test/collateral/invalid-version-other-accepted/fake-test262/package.json +0 -3
  20. package/test/collateral/invalid-version-other-accepted/fake-test262/test/strict.js +0 -9
  21. package/test/collateral/invalid-version-unsupported/fake-test262/harness/assert.js +0 -17
  22. package/test/collateral/invalid-version-unsupported/fake-test262/harness/doneprintHandle.js +0 -6
  23. package/test/collateral/invalid-version-unsupported/fake-test262/harness/sta.js +0 -12
  24. package/test/collateral/invalid-version-unsupported/fake-test262/package.json +0 -3
  25. package/test/collateral/invalid-version-unsupported/fake-test262/test/strict.js +0 -9
  26. package/test/collateral/valid-default/expected-content/test/asyncNegative_default.js +0 -49
  27. package/test/collateral/valid-default/expected-content/test/asyncNegative_strict_mode.js +0 -50
  28. package/test/collateral/valid-default/expected-content/test/async_default.js +0 -48
  29. package/test/collateral/valid-default/expected-content/test/async_strict_mode.js +0 -49
  30. package/test/collateral/valid-default/expected-content/test/bothStrict_default.js +0 -46
  31. package/test/collateral/valid-default/expected-content/test/bothStrict_strict_mode.js +0 -47
  32. package/test/collateral/valid-default/expected-content/test/error_default.js +0 -39
  33. package/test/collateral/valid-default/expected-content/test/error_strict_mode.js +0 -40
  34. package/test/collateral/valid-default/expected-content/test/module_default.js +0 -37
  35. package/test/collateral/valid-default/expected-content/test/module_strict_mode.js +0 -38
  36. package/test/collateral/valid-default/expected-content/test/negative-empty_default.js +0 -37
  37. package/test/collateral/valid-default/expected-content/test/negative-empty_strict_mode.js +0 -38
  38. package/test/collateral/valid-default/expected-content/test/noStrict_default.js +0 -36
  39. package/test/collateral/valid-default/expected-content/test/rawNoStrict_default.js +0 -14
  40. package/test/collateral/valid-default/expected-content/test/rawStrict_default.js +0 -15
  41. package/test/collateral/valid-default/expected-content/test/strict_strict_mode.js +0 -41
  42. package/test/collateral/valid-default/expected-metadata/test/asyncNegative_default.json +0 -22
  43. package/test/collateral/valid-default/expected-metadata/test/asyncNegative_strict_mode.json +0 -22
  44. package/test/collateral/valid-default/expected-metadata/test/async_default.json +0 -18
  45. package/test/collateral/valid-default/expected-metadata/test/async_strict_mode.json +0 -18
  46. package/test/collateral/valid-default/expected-metadata/test/bothStrict_default.json +0 -24
  47. package/test/collateral/valid-default/expected-metadata/test/bothStrict_strict_mode.json +0 -24
  48. package/test/collateral/valid-default/expected-metadata/test/error_default.json +0 -19
  49. package/test/collateral/valid-default/expected-metadata/test/error_strict_mode.json +0 -19
  50. package/test/collateral/valid-default/expected-metadata/test/module_default.json +0 -17
  51. package/test/collateral/valid-default/expected-metadata/test/module_strict_mode.json +0 -17
  52. package/test/collateral/valid-default/expected-metadata/test/negative-empty_default.json +0 -19
  53. package/test/collateral/valid-default/expected-metadata/test/negative-empty_strict_mode.json +0 -19
  54. package/test/collateral/valid-default/expected-metadata/test/noStrict_default.json +0 -17
  55. package/test/collateral/valid-default/expected-metadata/test/rawNoStrict_default.json +0 -14
  56. package/test/collateral/valid-default/expected-metadata/test/rawStrict_default.json +0 -14
  57. package/test/collateral/valid-default/expected-metadata/test/strict_strict_mode.json +0 -21
  58. package/test/collateral/valid-default/fake-test262/harness/assert.js +0 -17
  59. package/test/collateral/valid-default/fake-test262/harness/doneprintHandle.js +0 -6
  60. package/test/collateral/valid-default/fake-test262/harness/sta.js +0 -12
  61. package/test/collateral/valid-default/fake-test262/test/async.js +0 -10
  62. package/test/collateral/valid-default/fake-test262/test/asyncNegative.js +0 -11
  63. package/test/collateral/valid-default/fake-test262/test/bothStrict.js +0 -15
  64. package/test/collateral/valid-default/fake-test262/test/error.js +0 -8
  65. package/test/collateral/valid-default/fake-test262/test/module.js +0 -6
  66. package/test/collateral/valid-default/fake-test262/test/module_FIXTURE.js +0 -2
  67. package/test/collateral/valid-default/fake-test262/test/negative-empty.js +0 -6
  68. package/test/collateral/valid-default/fake-test262/test/noStrict.js +0 -5
  69. package/test/collateral/valid-default/fake-test262/test/rawNoStrict.js +0 -14
  70. package/test/collateral/valid-default/fake-test262/test/rawStrict.js +0 -15
  71. package/test/collateral/valid-default/fake-test262/test/strict.js +0 -9
  72. package/test/collateral/valid-extra-files/expected-content/test/bothStrict_default.js +0 -46
  73. package/test/collateral/valid-extra-files/expected-content/test/bothStrict_strict_mode.js +0 -47
  74. package/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_default.json +0 -24
  75. package/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_strict_mode.json +0 -24
  76. package/test/collateral/valid-extra-files/fake-test262/harness/assert.js +0 -17
  77. package/test/collateral/valid-extra-files/fake-test262/harness/doneprintHandle.js +0 -6
  78. package/test/collateral/valid-extra-files/fake-test262/harness/sta.js +0 -12
  79. package/test/collateral/valid-extra-files/fake-test262/test/bothStrict.js +0 -15
  80. package/test/collateral/valid-extra-files/fake-test262/test/zzz-0_FIXTURE.js +0 -2
  81. package/test/collateral/valid-extra-files/fake-test262/test/zzz-1_FIXTURE.js +0 -2
  82. package/test/collateral/valid-extra-files/fake-test262/test/zzz-2_FIXTURE.js +0 -2
  83. package/test/collateral/valid-extra-files/fake-test262/test/zzz-3_FIXTURE.js +0 -2
  84. package/test/collateral/valid-extra-files/fake-test262/test/zzz-4_FIXTURE.js +0 -2
  85. package/test/collateral/valid-extra-files/fake-test262/test/zzz-5_FIXTURE.js +0 -2
  86. package/test/collateral/valid-extra-files/fake-test262/test/zzz-6_FIXTURE.js +0 -2
  87. package/test/collateral/valid-extra-files/fake-test262/test/zzz-7_FIXTURE.js +0 -2
  88. package/test/collateral/valid-extra-files/fake-test262/test/zzz-8_FIXTURE.js +0 -2
  89. package/test/collateral/valid-extra-files/fake-test262/test/zzz-9_FIXTURE.txt +0 -2
  90. package/test/collateral/valid-insertionindex-with-copyright/expected-content/test/raw_default.js +0 -15
  91. package/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_default.js +0 -38
  92. package/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_strict_mode.js +0 -39
  93. package/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/raw_default.json +0 -14
  94. package/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_default.json +0 -15
  95. package/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_strict_mode.json +0 -15
  96. package/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/assert.js +0 -17
  97. package/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/sta.js +0 -12
  98. package/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/raw.js +0 -15
  99. package/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/runtime.js +0 -7
  100. package/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_default.js +0 -11
  101. package/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_strict_mode.js +0 -12
  102. package/test/collateral/valid-omit-runtime/expected-content/test/async_default.js +0 -10
  103. package/test/collateral/valid-omit-runtime/expected-content/test/async_strict_mode.js +0 -11
  104. package/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_default.js +0 -15
  105. package/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_strict_mode.js +0 -16
  106. package/test/collateral/valid-omit-runtime/expected-content/test/error_default.js +0 -8
  107. package/test/collateral/valid-omit-runtime/expected-content/test/error_strict_mode.js +0 -9
  108. package/test/collateral/valid-omit-runtime/expected-content/test/module_default.js +0 -6
  109. package/test/collateral/valid-omit-runtime/expected-content/test/module_strict_mode.js +0 -7
  110. package/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_default.js +0 -6
  111. package/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_strict_mode.js +0 -7
  112. package/test/collateral/valid-omit-runtime/expected-content/test/noStrict_default.js +0 -5
  113. package/test/collateral/valid-omit-runtime/expected-content/test/rawNoStrict_default.js +0 -14
  114. package/test/collateral/valid-omit-runtime/expected-content/test/rawStrict_default.js +0 -15
  115. package/test/collateral/valid-omit-runtime/expected-content/test/strict_strict_mode.js +0 -10
  116. package/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_default.json +0 -18
  117. package/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_strict_mode.json +0 -18
  118. package/test/collateral/valid-omit-runtime/expected-metadata/test/async_default.json +0 -14
  119. package/test/collateral/valid-omit-runtime/expected-metadata/test/async_strict_mode.json +0 -14
  120. package/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_default.json +0 -21
  121. package/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_strict_mode.json +0 -21
  122. package/test/collateral/valid-omit-runtime/expected-metadata/test/error_default.json +0 -16
  123. package/test/collateral/valid-omit-runtime/expected-metadata/test/error_strict_mode.json +0 -16
  124. package/test/collateral/valid-omit-runtime/expected-metadata/test/module_default.json +0 -14
  125. package/test/collateral/valid-omit-runtime/expected-metadata/test/module_strict_mode.json +0 -14
  126. package/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_default.json +0 -16
  127. package/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_strict_mode.json +0 -16
  128. package/test/collateral/valid-omit-runtime/expected-metadata/test/noStrict_default.json +0 -14
  129. package/test/collateral/valid-omit-runtime/expected-metadata/test/rawNoStrict_default.json +0 -14
  130. package/test/collateral/valid-omit-runtime/expected-metadata/test/rawStrict_default.json +0 -14
  131. package/test/collateral/valid-omit-runtime/expected-metadata/test/strict_strict_mode.json +0 -18
  132. package/test/collateral/valid-omit-runtime/fake-test262/harness/assert.js +0 -17
  133. package/test/collateral/valid-omit-runtime/fake-test262/harness/doneprintHandle.js +0 -6
  134. package/test/collateral/valid-omit-runtime/fake-test262/harness/sta.js +0 -12
  135. package/test/collateral/valid-omit-runtime/fake-test262/test/async.js +0 -10
  136. package/test/collateral/valid-omit-runtime/fake-test262/test/asyncNegative.js +0 -11
  137. package/test/collateral/valid-omit-runtime/fake-test262/test/bothStrict.js +0 -15
  138. package/test/collateral/valid-omit-runtime/fake-test262/test/error.js +0 -8
  139. package/test/collateral/valid-omit-runtime/fake-test262/test/module.js +0 -6
  140. package/test/collateral/valid-omit-runtime/fake-test262/test/module_FIXTURE.js +0 -2
  141. package/test/collateral/valid-omit-runtime/fake-test262/test/negative-empty.js +0 -6
  142. package/test/collateral/valid-omit-runtime/fake-test262/test/noStrict.js +0 -5
  143. package/test/collateral/valid-omit-runtime/fake-test262/test/rawNoStrict.js +0 -14
  144. package/test/collateral/valid-omit-runtime/fake-test262/test/rawStrict.js +0 -15
  145. package/test/collateral/valid-omit-runtime/fake-test262/test/strict.js +0 -9
  146. package/test/collateral/valid-version-ignored/expected-content/test/strict_strict_mode.js +0 -41
  147. package/test/collateral/valid-version-ignored/expected-metadata/test/strict_strict_mode.json +0 -21
  148. package/test/collateral/valid-version-ignored/fake-test262/harness/assert.js +0 -17
  149. package/test/collateral/valid-version-ignored/fake-test262/harness/doneprintHandle.js +0 -6
  150. package/test/collateral/valid-version-ignored/fake-test262/harness/sta.js +0 -12
  151. package/test/collateral/valid-version-ignored/fake-test262/package.json +0 -3
  152. package/test/collateral/valid-version-ignored/fake-test262/test/strict.js +0 -9
  153. package/test/collateral/valid-version-supported/expected-content/test/strict_strict_mode.js +0 -41
  154. package/test/collateral/valid-version-supported/expected-metadata/test/strict_strict_mode.json +0 -21
  155. package/test/collateral/valid-version-supported/fake-test262/harness/assert.js +0 -17
  156. package/test/collateral/valid-version-supported/fake-test262/harness/doneprintHandle.js +0 -6
  157. package/test/collateral/valid-version-supported/fake-test262/harness/sta.js +0 -12
  158. package/test/collateral/valid-version-supported/fake-test262/package.json +0 -3
  159. package/test/collateral/valid-version-supported/fake-test262/test/strict.js +0 -9
  160. package/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_default.js +0 -44
  161. package/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_strict_mode.js +0 -45
  162. package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-and-license-on-same-line_default.js +0 -20
  163. package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-multiline-block_default.js +0 -18
  164. package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls_default.js +0 -17
  165. package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-and-license-on-same-line_default.js +0 -20
  166. package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-multiline-block_default.js +0 -18
  167. package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps_default.js +0 -17
  168. package/test/collateral/valid-with-hashbang/expected-content/test/rawWithLicense_default.js +0 -21
  169. package/test/collateral/valid-with-hashbang/expected-content/test/raw_default.js +0 -17
  170. package/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_default.json +0 -22
  171. package/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_strict_mode.json +0 -22
  172. package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-and-license-on-same-line_default.json +0 -21
  173. package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-multiline-block_default.json +0 -21
  174. package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls_default.json +0 -21
  175. package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-and-license-on-same-line_default.json +0 -21
  176. package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-multiline-block_default.json +0 -21
  177. package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps_default.json +0 -21
  178. package/test/collateral/valid-with-hashbang/expected-metadata/test/rawWithLicense_default.json +0 -21
  179. package/test/collateral/valid-with-hashbang/expected-metadata/test/raw_default.json +0 -21
  180. package/test/collateral/valid-with-hashbang/fake-test262/harness/assert.js +0 -17
  181. package/test/collateral/valid-with-hashbang/fake-test262/harness/doneprintHandle.js +0 -6
  182. package/test/collateral/valid-with-hashbang/fake-test262/harness/sta.js +0 -12
  183. package/test/collateral/valid-with-hashbang/fake-test262/test/missing-raw-flag.js +0 -13
  184. package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-and-license-on-same-line.js +0 -20
  185. package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-multiline-block.js +0 -18
  186. package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls.js +0 -17
  187. package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-and-license-on-same-line.js +0 -20
  188. package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-multiline-block.js +0 -18
  189. package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps.js +0 -17
  190. package/test/collateral/valid-with-hashbang/fake-test262/test/raw.js +0 -17
  191. package/test/collateral/valid-with-hashbang/fake-test262/test/rawWithLicense.js +0 -21
  192. package/test/collateral/valid-with-includes/custom-includes/assert.js +0 -17
  193. package/test/collateral/valid-with-includes/custom-includes/doneprintHandle.js +0 -9
  194. package/test/collateral/valid-with-includes/custom-includes/sta.js +0 -13
  195. package/test/collateral/valid-with-includes/expected-content/test/async_default.js +0 -52
  196. package/test/collateral/valid-with-includes/expected-content/test/async_strict_mode.js +0 -53
  197. package/test/collateral/valid-with-includes/expected-content/test/bothStrict_default.js +0 -47
  198. package/test/collateral/valid-with-includes/expected-content/test/bothStrict_strict_mode.js +0 -48
  199. package/test/collateral/valid-with-includes/expected-metadata/test/async_default.json +0 -18
  200. package/test/collateral/valid-with-includes/expected-metadata/test/async_strict_mode.json +0 -18
  201. package/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_default.json +0 -24
  202. package/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_strict_mode.json +0 -24
  203. package/test/collateral/valid-with-includes/fake-test262/harness/assert.js +0 -17
  204. package/test/collateral/valid-with-includes/fake-test262/harness/doneprintHandle.js +0 -6
  205. package/test/collateral/valid-with-includes/fake-test262/test/async.js +0 -10
  206. package/test/collateral/valid-with-includes/fake-test262/test/bothStrict.js +0 -15
  207. package/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_default.js +0 -49
  208. package/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_strict_mode.js +0 -50
  209. package/test/collateral/valid-with-paths/expected-content/test/async/async_default.js +0 -48
  210. package/test/collateral/valid-with-paths/expected-content/test/async/async_strict_mode.js +0 -49
  211. package/test/collateral/valid-with-paths/expected-content/test/bothStrict_default.js +0 -46
  212. package/test/collateral/valid-with-paths/expected-content/test/bothStrict_strict_mode.js +0 -47
  213. package/test/collateral/valid-with-paths/expected-content/test/strict/no/noStrict_default.js +0 -36
  214. package/test/collateral/valid-with-paths/expected-content/test/strict/no/rawNoStrict_default.js +0 -14
  215. package/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_default.json +0 -22
  216. package/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_strict_mode.json +0 -22
  217. package/test/collateral/valid-with-paths/expected-metadata/test/async/async_default.json +0 -18
  218. package/test/collateral/valid-with-paths/expected-metadata/test/async/async_strict_mode.json +0 -18
  219. package/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_default.json +0 -24
  220. package/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_strict_mode.json +0 -24
  221. package/test/collateral/valid-with-paths/expected-metadata/test/strict/no/noStrict_default.json +0 -17
  222. package/test/collateral/valid-with-paths/expected-metadata/test/strict/no/rawNoStrict_default.json +0 -14
  223. package/test/collateral/valid-with-paths/fake-test262/harness/assert.js +0 -17
  224. package/test/collateral/valid-with-paths/fake-test262/harness/doneprintHandle.js +0 -6
  225. package/test/collateral/valid-with-paths/fake-test262/harness/sta.js +0 -12
  226. package/test/collateral/valid-with-paths/fake-test262/test/async/async.js +0 -10
  227. package/test/collateral/valid-with-paths/fake-test262/test/async/asyncNegative.js +0 -11
  228. package/test/collateral/valid-with-paths/fake-test262/test/bothStrict.js +0 -15
  229. package/test/collateral/valid-with-paths/fake-test262/test/error.js +0 -8
  230. package/test/collateral/valid-with-paths/fake-test262/test/negative-empty.js +0 -6
  231. package/test/collateral/valid-with-paths/fake-test262/test/strict/no/noStrict.js +0 -5
  232. package/test/collateral/valid-with-paths/fake-test262/test/strict/no/rawNoStrict.js +0 -14
  233. package/test/collateral/valid-with-paths/fake-test262/test/strict/rawStrict.js +0 -15
  234. package/test/collateral/valid-with-paths/fake-test262/test/strict/strict.js +0 -9
  235. package/test/test.js +0 -319
@@ -1,50 +0,0 @@
1
- "use strict";
2
- // This is assert.js
3
-
4
- 'It has some contents';
5
-
6
- /* that
7
- *
8
- * should
9
-
10
- * not
11
- */
12
-
13
- `be ${ "modified" }`;
14
-
15
- var including, trailing;
16
- whitespace: ;
17
-
18
- void "end of assert.js";
19
-
20
- function Test262Error(message) {
21
- this.message = message || "";
22
- }
23
-
24
- Test262Error.prototype.toString = function () {
25
- return "Test262Error: " + this.message;
26
- };
27
-
28
- var $ERROR;
29
- $ERROR = function $ERROR(message) {
30
- throw new Test262Error(message);
31
- };
32
-
33
- function $DONE(){
34
- if(!arguments[0])
35
- print('Test262:AsyncTestComplete');
36
- else
37
- print('Error: ' + arguments[0]);
38
- }
39
-
40
- /*---
41
- description: Async negative test
42
- negative:
43
- phase: runtime
44
- type: RangeError
45
- flags: [async]
46
- ---*/
47
-
48
- setTimeout(function() {
49
- $DONE(new RangeError());
50
- }, 1000);
@@ -1,48 +0,0 @@
1
- // This is assert.js
2
-
3
- 'It has some contents';
4
-
5
- /* that
6
- *
7
- * should
8
-
9
- * not
10
- */
11
-
12
- `be ${ "modified" }`;
13
-
14
- var including, trailing;
15
- whitespace: ;
16
-
17
- void "end of assert.js";
18
-
19
- function Test262Error(message) {
20
- this.message = message || "";
21
- }
22
-
23
- Test262Error.prototype.toString = function () {
24
- return "Test262Error: " + this.message;
25
- };
26
-
27
- var $ERROR;
28
- $ERROR = function $ERROR(message) {
29
- throw new Test262Error(message);
30
- };
31
-
32
- function $DONE(){
33
- if(!arguments[0])
34
- print('Test262:AsyncTestComplete');
35
- else
36
- print('Error: ' + arguments[0]);
37
- }
38
-
39
- /*---
40
- description: Async test
41
- flags: [async]
42
- ---*/
43
-
44
- var p = new Promise(function(resolve) {
45
- resolve();
46
- });
47
-
48
- p.then($DONE, $DONE);
@@ -1,49 +0,0 @@
1
- "use strict";
2
- // This is assert.js
3
-
4
- 'It has some contents';
5
-
6
- /* that
7
- *
8
- * should
9
-
10
- * not
11
- */
12
-
13
- `be ${ "modified" }`;
14
-
15
- var including, trailing;
16
- whitespace: ;
17
-
18
- void "end of assert.js";
19
-
20
- function Test262Error(message) {
21
- this.message = message || "";
22
- }
23
-
24
- Test262Error.prototype.toString = function () {
25
- return "Test262Error: " + this.message;
26
- };
27
-
28
- var $ERROR;
29
- $ERROR = function $ERROR(message) {
30
- throw new Test262Error(message);
31
- };
32
-
33
- function $DONE(){
34
- if(!arguments[0])
35
- print('Test262:AsyncTestComplete');
36
- else
37
- print('Error: ' + arguments[0]);
38
- }
39
-
40
- /*---
41
- description: Async test
42
- flags: [async]
43
- ---*/
44
-
45
- var p = new Promise(function(resolve) {
46
- resolve();
47
- });
48
-
49
- p.then($DONE, $DONE);
@@ -1,46 +0,0 @@
1
- // This is assert.js
2
-
3
- 'It has some contents';
4
-
5
- /* that
6
- *
7
- * should
8
-
9
- * not
10
- */
11
-
12
- `be ${ "modified" }`;
13
-
14
- var including, trailing;
15
- whitespace: ;
16
-
17
- void "end of assert.js";
18
-
19
- function Test262Error(message) {
20
- this.message = message || "";
21
- }
22
-
23
- Test262Error.prototype.toString = function () {
24
- return "Test262Error: " + this.message;
25
- };
26
-
27
- var $ERROR;
28
- $ERROR = function $ERROR(message) {
29
- throw new Test262Error(message);
30
- };
31
-
32
- /*---
33
- description: Should test in both modes
34
- features: [var, try, if]
35
- negative:
36
- phase: runtime
37
- type: ReferenceError
38
- ---*/
39
- var strict;
40
- try { x = 1; strict = false;} catch(e) { strict = true }
41
-
42
- if(strict) {
43
- y = 1;
44
- } else {
45
- throw new ReferenceError();
46
- }
@@ -1,47 +0,0 @@
1
- "use strict";
2
- // This is assert.js
3
-
4
- 'It has some contents';
5
-
6
- /* that
7
- *
8
- * should
9
-
10
- * not
11
- */
12
-
13
- `be ${ "modified" }`;
14
-
15
- var including, trailing;
16
- whitespace: ;
17
-
18
- void "end of assert.js";
19
-
20
- function Test262Error(message) {
21
- this.message = message || "";
22
- }
23
-
24
- Test262Error.prototype.toString = function () {
25
- return "Test262Error: " + this.message;
26
- };
27
-
28
- var $ERROR;
29
- $ERROR = function $ERROR(message) {
30
- throw new Test262Error(message);
31
- };
32
-
33
- /*---
34
- description: Should test in both modes
35
- features: [var, try, if]
36
- negative:
37
- phase: runtime
38
- type: ReferenceError
39
- ---*/
40
- var strict;
41
- try { x = 1; strict = false;} catch(e) { strict = true }
42
-
43
- if(strict) {
44
- y = 1;
45
- } else {
46
- throw new ReferenceError();
47
- }
@@ -1,39 +0,0 @@
1
- // This is assert.js
2
-
3
- 'It has some contents';
4
-
5
- /* that
6
- *
7
- * should
8
-
9
- * not
10
- */
11
-
12
- `be ${ "modified" }`;
13
-
14
- var including, trailing;
15
- whitespace: ;
16
-
17
- void "end of assert.js";
18
-
19
- function Test262Error(message) {
20
- this.message = message || "";
21
- }
22
-
23
- Test262Error.prototype.toString = function () {
24
- return "Test262Error: " + this.message;
25
- };
26
-
27
- var $ERROR;
28
- $ERROR = function $ERROR(message) {
29
- throw new Test262Error(message);
30
- };
31
-
32
- /*---
33
- description: Fails by calling $ERROR
34
- negative:
35
- phase: runtime
36
- type: Test262Error
37
- ---*/
38
-
39
- $ERROR('failure message');
@@ -1,40 +0,0 @@
1
- "use strict";
2
- // This is assert.js
3
-
4
- 'It has some contents';
5
-
6
- /* that
7
- *
8
- * should
9
-
10
- * not
11
- */
12
-
13
- `be ${ "modified" }`;
14
-
15
- var including, trailing;
16
- whitespace: ;
17
-
18
- void "end of assert.js";
19
-
20
- function Test262Error(message) {
21
- this.message = message || "";
22
- }
23
-
24
- Test262Error.prototype.toString = function () {
25
- return "Test262Error: " + this.message;
26
- };
27
-
28
- var $ERROR;
29
- $ERROR = function $ERROR(message) {
30
- throw new Test262Error(message);
31
- };
32
-
33
- /*---
34
- description: Fails by calling $ERROR
35
- negative:
36
- phase: runtime
37
- type: Test262Error
38
- ---*/
39
-
40
- $ERROR('failure message');
@@ -1,37 +0,0 @@
1
- // This is assert.js
2
-
3
- 'It has some contents';
4
-
5
- /* that
6
- *
7
- * should
8
-
9
- * not
10
- */
11
-
12
- `be ${ "modified" }`;
13
-
14
- var including, trailing;
15
- whitespace: ;
16
-
17
- void "end of assert.js";
18
-
19
- function Test262Error(message) {
20
- this.message = message || "";
21
- }
22
-
23
- Test262Error.prototype.toString = function () {
24
- return "Test262Error: " + this.message;
25
- };
26
-
27
- var $ERROR;
28
- $ERROR = function $ERROR(message) {
29
- throw new Test262Error(message);
30
- };
31
-
32
- /*---
33
- description: A test for module code
34
- flags: [module]
35
- ---*/
36
-
37
- import fixture from './module_FIXTURE.js';
@@ -1,38 +0,0 @@
1
- "use strict";
2
- // This is assert.js
3
-
4
- 'It has some contents';
5
-
6
- /* that
7
- *
8
- * should
9
-
10
- * not
11
- */
12
-
13
- `be ${ "modified" }`;
14
-
15
- var including, trailing;
16
- whitespace: ;
17
-
18
- void "end of assert.js";
19
-
20
- function Test262Error(message) {
21
- this.message = message || "";
22
- }
23
-
24
- Test262Error.prototype.toString = function () {
25
- return "Test262Error: " + this.message;
26
- };
27
-
28
- var $ERROR;
29
- $ERROR = function $ERROR(message) {
30
- throw new Test262Error(message);
31
- };
32
-
33
- /*---
34
- description: A test for module code
35
- flags: [module]
36
- ---*/
37
-
38
- import fixture from './module_FIXTURE.js';
@@ -1,37 +0,0 @@
1
- // This is assert.js
2
-
3
- 'It has some contents';
4
-
5
- /* that
6
- *
7
- * should
8
-
9
- * not
10
- */
11
-
12
- `be ${ "modified" }`;
13
-
14
- var including, trailing;
15
- whitespace: ;
16
-
17
- void "end of assert.js";
18
-
19
- function Test262Error(message) {
20
- this.message = message || "";
21
- }
22
-
23
- Test262Error.prototype.toString = function () {
24
- return "Test262Error: " + this.message;
25
- };
26
-
27
- var $ERROR;
28
- $ERROR = function $ERROR(message) {
29
- throw new Test262Error(message);
30
- };
31
-
32
- /*---
33
- description: Should report the expected error indicated by the "negative" frontmatter
34
- negative:
35
- phase: runtime
36
- type: Test262Error
37
- ---*/
@@ -1,38 +0,0 @@
1
- "use strict";
2
- // This is assert.js
3
-
4
- 'It has some contents';
5
-
6
- /* that
7
- *
8
- * should
9
-
10
- * not
11
- */
12
-
13
- `be ${ "modified" }`;
14
-
15
- var including, trailing;
16
- whitespace: ;
17
-
18
- void "end of assert.js";
19
-
20
- function Test262Error(message) {
21
- this.message = message || "";
22
- }
23
-
24
- Test262Error.prototype.toString = function () {
25
- return "Test262Error: " + this.message;
26
- };
27
-
28
- var $ERROR;
29
- $ERROR = function $ERROR(message) {
30
- throw new Test262Error(message);
31
- };
32
-
33
- /*---
34
- description: Should report the expected error indicated by the "negative" frontmatter
35
- negative:
36
- phase: runtime
37
- type: Test262Error
38
- ---*/
@@ -1,36 +0,0 @@
1
- // This is assert.js
2
-
3
- 'It has some contents';
4
-
5
- /* that
6
- *
7
- * should
8
-
9
- * not
10
- */
11
-
12
- `be ${ "modified" }`;
13
-
14
- var including, trailing;
15
- whitespace: ;
16
-
17
- void "end of assert.js";
18
-
19
- function Test262Error(message) {
20
- this.message = message || "";
21
- }
22
-
23
- Test262Error.prototype.toString = function () {
24
- return "Test262Error: " + this.message;
25
- };
26
-
27
- var $ERROR;
28
- $ERROR = function $ERROR(message) {
29
- throw new Test262Error(message);
30
- };
31
-
32
- /*---
33
- description: Should not test in strict mode
34
- flags: [noStrict]
35
- ---*/
36
- x = 5;
@@ -1,14 +0,0 @@
1
- /*---
2
- description: Should not test in strict mode
3
- flags: [raw]
4
- ---*/
5
- var seemsStrict;
6
- try {
7
- x = 1;
8
- } catch (err) {
9
- seemsStrict = err.constructor === ReferenceError;
10
- }
11
-
12
- if (seemsStrict) {
13
- throw new Error('Script erroneously interpreted in strict mode.');
14
- }
@@ -1,15 +0,0 @@
1
- /*---
2
- description: Should not test in strict mode (but allow strict mode to be enabled)
3
- flags: [raw]
4
- ---*/
5
- 'use strict';
6
- var seemsStrict;
7
- try {
8
- x = 1;
9
- } catch (err) {
10
- seemsStrict = err.constructor === ReferenceError;
11
- }
12
-
13
- if (!seemsStrict) {
14
- throw new Error('Script erroneously not interpreted in strict mode.');
15
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- // This is assert.js
3
-
4
- 'It has some contents';
5
-
6
- /* that
7
- *
8
- * should
9
-
10
- * not
11
- */
12
-
13
- `be ${ "modified" }`;
14
-
15
- var including, trailing;
16
- whitespace: ;
17
-
18
- void "end of assert.js";
19
-
20
- function Test262Error(message) {
21
- this.message = message || "";
22
- }
23
-
24
- Test262Error.prototype.toString = function () {
25
- return "Test262Error: " + this.message;
26
- };
27
-
28
- var $ERROR;
29
- $ERROR = function $ERROR(message) {
30
- throw new Test262Error(message);
31
- };
32
-
33
- /*---
34
- description: Should not test in sloppy mode
35
- flags: [onlyStrict]
36
- negative:
37
- phase: runtime
38
- type: ReferenceError
39
- ---*/
40
- x = 5;
41
- $ERROR('Not in strict mode');
@@ -1,22 +0,0 @@
1
- {
2
- "file": "test/asyncNegative.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Async negative test",
6
- "negative": {
7
- "phase": "runtime",
8
- "type": "RangeError"
9
- },
10
- "flags": {
11
- "async": true
12
- },
13
- "includes": [
14
- "assert.js",
15
- "sta.js",
16
- "doneprintHandle.js"
17
- ]
18
- },
19
- "copyright": "",
20
- "scenario": "default",
21
- "insertionIndex": 564
22
- }
@@ -1,22 +0,0 @@
1
- {
2
- "file": "test/asyncNegative.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Async negative test (Strict Mode)",
6
- "negative": {
7
- "phase": "runtime",
8
- "type": "RangeError"
9
- },
10
- "flags": {
11
- "async": true
12
- },
13
- "includes": [
14
- "assert.js",
15
- "sta.js",
16
- "doneprintHandle.js"
17
- ]
18
- },
19
- "copyright": "",
20
- "scenario": "strict mode",
21
- "insertionIndex": 578
22
- }
@@ -1,18 +0,0 @@
1
- {
2
- "file": "test/async.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Async test",
6
- "flags": {
7
- "async": true
8
- },
9
- "includes": [
10
- "assert.js",
11
- "sta.js",
12
- "doneprintHandle.js"
13
- ]
14
- },
15
- "copyright": "",
16
- "scenario": "default",
17
- "insertionIndex": 564
18
- }
@@ -1,18 +0,0 @@
1
- {
2
- "file": "test/async.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Async test (Strict Mode)",
6
- "flags": {
7
- "async": true
8
- },
9
- "includes": [
10
- "assert.js",
11
- "sta.js",
12
- "doneprintHandle.js"
13
- ]
14
- },
15
- "copyright": "",
16
- "scenario": "strict mode",
17
- "insertionIndex": 578
18
- }
@@ -1,24 +0,0 @@
1
- {
2
- "file": "test/bothStrict.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Should test in both modes",
6
- "features": [
7
- "var",
8
- "try",
9
- "if"
10
- ],
11
- "negative": {
12
- "phase": "runtime",
13
- "type": "ReferenceError"
14
- },
15
- "flags": {},
16
- "includes": [
17
- "assert.js",
18
- "sta.js"
19
- ]
20
- },
21
- "copyright": "",
22
- "scenario": "default",
23
- "insertionIndex": 439
24
- }