@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,17 +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";
@@ -1,6 +0,0 @@
1
- function $DONE(){
2
- if(!arguments[0])
3
- print('Test262:AsyncTestComplete');
4
- else
5
- print('Error: ' + arguments[0]);
6
- }
@@ -1,12 +0,0 @@
1
- function Test262Error(message) {
2
- this.message = message || "";
3
- }
4
-
5
- Test262Error.prototype.toString = function () {
6
- return "Test262Error: " + this.message;
7
- };
8
-
9
- var $ERROR;
10
- $ERROR = function $ERROR(message) {
11
- throw new Test262Error(message);
12
- };
@@ -1,10 +0,0 @@
1
- /*---
2
- description: Async test
3
- flags: [async]
4
- ---*/
5
-
6
- var p = new Promise(function(resolve) {
7
- resolve();
8
- });
9
-
10
- p.then($DONE, $DONE);
@@ -1,11 +0,0 @@
1
- /*---
2
- description: Async negative test
3
- negative:
4
- phase: runtime
5
- type: RangeError
6
- flags: [async]
7
- ---*/
8
-
9
- setTimeout(function() {
10
- $DONE(new RangeError());
11
- }, 1000);
@@ -1,15 +0,0 @@
1
- /*---
2
- description: Should test in both modes
3
- features: [var, try, if]
4
- negative:
5
- phase: runtime
6
- type: ReferenceError
7
- ---*/
8
- var strict;
9
- try { x = 1; strict = false;} catch(e) { strict = true }
10
-
11
- if(strict) {
12
- y = 1;
13
- } else {
14
- throw new ReferenceError();
15
- }
@@ -1,8 +0,0 @@
1
- /*---
2
- description: Fails by calling $ERROR
3
- negative:
4
- phase: runtime
5
- type: Test262Error
6
- ---*/
7
-
8
- $ERROR('failure message');
@@ -1,6 +0,0 @@
1
- /*---
2
- description: A test for module code
3
- flags: [module]
4
- ---*/
5
-
6
- import fixture from './module_FIXTURE.js';
@@ -1,2 +0,0 @@
1
- // This file is a Test262 "fixture" file and should not be
2
- // visited.
@@ -1,6 +0,0 @@
1
- /*---
2
- description: Should report the expected error indicated by the "negative" frontmatter
3
- negative:
4
- phase: runtime
5
- type: Test262Error
6
- ---*/
@@ -1,5 +0,0 @@
1
- /*---
2
- description: Should not test in strict mode
3
- flags: [noStrict]
4
- ---*/
5
- 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,9 +0,0 @@
1
- /*---
2
- description: Should not test in sloppy mode
3
- flags: [onlyStrict]
4
- negative:
5
- phase: runtime
6
- type: ReferenceError
7
- ---*/
8
- x = 5;
9
- $ERROR('Not in strict mode');
@@ -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,21 +0,0 @@
1
- {
2
- "file": "test/strict.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Should not test in sloppy mode (Strict Mode)",
6
- "flags": {
7
- "onlyStrict": true
8
- },
9
- "negative": {
10
- "phase": "runtime",
11
- "type": "ReferenceError"
12
- },
13
- "includes": [
14
- "assert.js",
15
- "sta.js"
16
- ]
17
- },
18
- "copyright": "",
19
- "scenario": "strict mode",
20
- "insertionIndex": 453
21
- }
@@ -1,17 +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";
@@ -1,6 +0,0 @@
1
- function $DONE(){
2
- if(!arguments[0])
3
- print('Test262:AsyncTestComplete');
4
- else
5
- print('Error: ' + arguments[0]);
6
- }
@@ -1,12 +0,0 @@
1
- function Test262Error(message) {
2
- this.message = message || "";
3
- }
4
-
5
- Test262Error.prototype.toString = function () {
6
- return "Test262Error: " + this.message;
7
- };
8
-
9
- var $ERROR;
10
- $ERROR = function $ERROR(message) {
11
- throw new Test262Error(message);
12
- };
@@ -1,3 +0,0 @@
1
- {
2
- "version": "999.0.0"
3
- }
@@ -1,9 +0,0 @@
1
- /*---
2
- description: Should not test in sloppy mode
3
- flags: [onlyStrict]
4
- negative:
5
- phase: runtime
6
- type: ReferenceError
7
- ---*/
8
- x = 5;
9
- $ERROR('Not in strict mode');
@@ -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,21 +0,0 @@
1
- {
2
- "file": "test/strict.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Should not test in sloppy mode (Strict Mode)",
6
- "flags": {
7
- "onlyStrict": true
8
- },
9
- "negative": {
10
- "phase": "runtime",
11
- "type": "ReferenceError"
12
- },
13
- "includes": [
14
- "assert.js",
15
- "sta.js"
16
- ]
17
- },
18
- "copyright": "",
19
- "scenario": "strict mode",
20
- "insertionIndex": 453
21
- }
@@ -1,17 +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";
@@ -1,6 +0,0 @@
1
- function $DONE(){
2
- if(!arguments[0])
3
- print('Test262:AsyncTestComplete');
4
- else
5
- print('Error: ' + arguments[0]);
6
- }
@@ -1,12 +0,0 @@
1
- function Test262Error(message) {
2
- this.message = message || "";
3
- }
4
-
5
- Test262Error.prototype.toString = function () {
6
- return "Test262Error: " + this.message;
7
- };
8
-
9
- var $ERROR;
10
- $ERROR = function $ERROR(message) {
11
- throw new Test262Error(message);
12
- };
@@ -1,3 +0,0 @@
1
- {
2
- "version": "1.23.45"
3
- }
@@ -1,9 +0,0 @@
1
- /*---
2
- description: Should not test in sloppy mode
3
- flags: [onlyStrict]
4
- negative:
5
- phase: runtime
6
- type: ReferenceError
7
- ---*/
8
- x = 5;
9
- $ERROR('Not in strict mode');
@@ -1,44 +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
-
34
- /*---
35
- description: >
36
- Missing raw flag will result in the harness/runtime includes being added,
37
- however doing so will produce invalid test code.
38
- features: [hashbang]
39
- negative:
40
- phase: parse
41
- type: SyntaxError
42
- ---*/
43
-
44
- throw "Test262: This statement should not be evaluated.";
@@ -1,45 +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
-
35
- /*---
36
- description: >
37
- Missing raw flag will result in the harness/runtime includes being added,
38
- however doing so will produce invalid test code.
39
- features: [hashbang]
40
- negative:
41
- phase: parse
42
- type: SyntaxError
43
- ---*/
44
-
45
- throw "Test262: This statement should not be evaluated.";
@@ -1,20 +0,0 @@
1
- #!LS
// Copyright (c) 2019, Bocoup LLC. All rights reserved.
2
- // This code is governed by the BSD license found in the LICENSE file.
3
-
4
- /*---
5
- description: >
6
- Has a license after the hashbang, on same line. There is an <LS> between them.
7
- features: [hashbang]
8
- flags: [raw]
9
- negative:
10
- phase: runtime
11
- type: ReferenceError
12
- ---*/
13
- var strict;
14
- try { x = 1; strict = false;} catch(e) { strict = true }
15
-
16
- if(strict) {
17
- y = 1;
18
- } else {
19
- throw new ReferenceError();
20
- }
@@ -1,18 +0,0 @@
1
- #!LS
{// a U+2028 <LS> LINE SEPARATOR is to the immediate left of "{//"
2
- }
3
- /*---
4
- description: No license after the hashbang. Contents should have hashbang
5
- features: [hashbang]
6
- flags: [raw]
7
- negative:
8
- phase: runtime
9
- type: ReferenceError
10
- ---*/
11
- var strict;
12
- try { x = 1; strict = false;} catch(e) { strict = true }
13
-
14
- if(strict) {
15
- y = 1;
16
- } else {
17
- throw new ReferenceError();
18
- }
@@ -1,17 +0,0 @@
1
- #!LS
// a U+2028 <LS> LINE SEPARATOR is to the immediate left of "//"
2
- /*---
3
- description: No license after the hashbang. Contents should have hashbang
4
- features: [hashbang]
5
- flags: [raw]
6
- negative:
7
- phase: runtime
8
- type: ReferenceError
9
- ---*/
10
- var strict;
11
- try { x = 1; strict = false;} catch(e) { strict = true }
12
-
13
- if(strict) {
14
- y = 1;
15
- } else {
16
- throw new ReferenceError();
17
- }
@@ -1,20 +0,0 @@
1
- #!PS
// Copyright (c) 2019, Bocoup LLC. All rights reserved.
2
- // This code is governed by the BSD license found in the LICENSE file.
3
-
4
- /*---
5
- description: >
6
- Has a license after the hashbang, on same line. There is a <PS> between them.
7
- features: [hashbang]
8
- flags: [raw]
9
- negative:
10
- phase: runtime
11
- type: ReferenceError
12
- ---*/
13
- var strict;
14
- try { x = 1; strict = false;} catch(e) { strict = true }
15
-
16
- if(strict) {
17
- y = 1;
18
- } else {
19
- throw new ReferenceError();
20
- }
@@ -1,18 +0,0 @@
1
- #!PS
{// a U+2029 <PS> PARAGRAPH SEPARATOR is to the immediate left of "{//"
2
- }
3
- /*---
4
- description: Multiline block, no license after the hashbang. Contents should have hashbang
5
- features: [hashbang]
6
- flags: [raw]
7
- negative:
8
- phase: runtime
9
- type: ReferenceError
10
- ---*/
11
- var strict;
12
- try { x = 1; strict = false;} catch(e) { strict = true }
13
-
14
- if(strict) {
15
- y = 1;
16
- } else {
17
- throw new ReferenceError();
18
- }
@@ -1,17 +0,0 @@
1
- #!PS
// a U+2029 <PS> PARAGRAPH SEPARATOR is to the immediate left of "//"
2
- /*---
3
- description: No license after the hashbang. Contents should have hashbang
4
- features: [hashbang]
5
- flags: [raw]
6
- negative:
7
- phase: runtime
8
- type: ReferenceError
9
- ---*/
10
- var strict;
11
- try { x = 1; strict = false;} catch(e) { strict = true }
12
-
13
- if(strict) {
14
- y = 1;
15
- } else {
16
- throw new ReferenceError();
17
- }
@@ -1,21 +0,0 @@
1
- #!whatever
2
-
3
- // Copyright (c) 2019, Bocoup LLC. All rights reserved.
4
- // This code is governed by the BSD license found in the LICENSE file.
5
-
6
- /*---
7
- description: Has a license after the hashbang. Contents should have hashbang
8
- features: [hashbang]
9
- flags: [raw]
10
- negative:
11
- phase: runtime
12
- type: ReferenceError
13
- ---*/
14
- var strict;
15
- try { x = 1; strict = false;} catch(e) { strict = true }
16
-
17
- if(strict) {
18
- y = 1;
19
- } else {
20
- throw new ReferenceError();
21
- }
@@ -1,17 +0,0 @@
1
- #!whatever
2
- /*---
3
- description: No license after the hashbang. Contents should have hashbang
4
- features: [hashbang]
5
- flags: [raw]
6
- negative:
7
- phase: runtime
8
- type: ReferenceError
9
- ---*/
10
- var strict;
11
- try { x = 1; strict = false;} catch(e) { strict = true }
12
-
13
- if(strict) {
14
- y = 1;
15
- } else {
16
- throw new ReferenceError();
17
- }
@@ -1,22 +0,0 @@
1
- {
2
- "file": "test/missing-raw-flag.js",
3
- "contents": "(The value of this property is over-sized, so it is validated independently.)",
4
- "attrs": {
5
- "description": "Missing raw flag will result in the harness/runtime includes being added, however doing so will produce invalid test code.\n",
6
- "features": [
7
- "hashbang"
8
- ],
9
- "negative": {
10
- "phase": "parse",
11
- "type": "SyntaxError"
12
- },
13
- "flags": {},
14
- "includes": [
15
- "assert.js",
16
- "sta.js"
17
- ]
18
- },
19
- "copyright": "",
20
- "scenario": "default",
21
- "insertionIndex": 439
22
- }