tree: 1fad2c2935b7b9f8c66efb10214bb620a3c73cce [path history] [tgz]
  1. regress/
  2. arrow-bare-rest-param.js
  3. arrow-bare-rest-param.out
  4. arrow-formal-parameters.js
  5. arrow-formal-parameters.out
  6. arrow-invalid-rest-2.js
  7. arrow-invalid-rest-2.out
  8. arrow-invalid-rest.js
  9. arrow-invalid-rest.out
  10. arrow-missing.js
  11. arrow-missing.out
  12. arrow-param-after-rest-2.js
  13. arrow-param-after-rest-2.out
  14. arrow-param-after-rest.js
  15. arrow-param-after-rest.out
  16. arrow-strict-eval-bare-parameter.js
  17. arrow-strict-eval-bare-parameter.out
  18. arrow-two-rest-params.js
  19. arrow-two-rest-params.out
  20. asm-assignment-undeclared.js
  21. asm-assignment-undeclared.out
  22. asm-function-mismatch-def.js
  23. asm-function-mismatch-def.out
  24. asm-function-mismatch-use.js
  25. asm-function-mismatch-use.out
  26. asm-function-redefined.js
  27. asm-function-redefined.out
  28. asm-function-undefined.js
  29. asm-function-undefined.out
  30. asm-function-variable-collision.js
  31. asm-function-variable-collision.out
  32. asm-missing-parameter-annotation.js
  33. asm-missing-parameter-annotation.out
  34. asm-missing-return-annotation.js
  35. asm-missing-return-annotation.out
  36. asm-table-mismatch-def.js
  37. asm-table-mismatch-def.out
  38. asm-table-mismatch-use.js
  39. asm-table-mismatch-use.out
  40. asm-table-redefined.js
  41. asm-table-redefined.out
  42. asm-table-undefined.js
  43. asm-table-undefined.out
  44. asm-table-variable-collision.js
  45. asm-table-variable-collision.out
  46. call-non-constructable.js
  47. call-non-constructable.out
  48. call-primitive-constructor.js
  49. call-primitive-constructor.out
  50. call-primitive-function.js
  51. call-primitive-function.out
  52. call-undeclared-function.js
  53. call-undeclared-function.out
  54. class-constructor-accessor.js
  55. class-constructor-accessor.out
  56. class-constructor-generator.js
  57. class-constructor-generator.out
  58. const-decl-no-init-sloppy.out
  59. const-decl-no-init.js
  60. const-decl-no-init.out
  61. const-decl-no-init2.js
  62. const-decl-no-init2.out
  63. default-parameter-tdz-arrow.js
  64. default-parameter-tdz-arrow.out
  65. default-parameter-tdz.js
  66. default-parameter-tdz.out
  67. destructuring-decl-no-init-array.js
  68. destructuring-decl-no-init-array.out
  69. destructuring-decl-no-init-array2.js
  70. destructuring-decl-no-init-array2.out
  71. destructuring-decl-no-init-obj.js
  72. destructuring-decl-no-init-obj.out
  73. destructuring-decl-no-init-obj2.js
  74. destructuring-decl-no-init-obj2.out
  75. destructuring-modify-const.js
  76. destructuring-modify-const.out
  77. export-duplicate-as.js
  78. export-duplicate-as.out
  79. export-duplicate-default.js
  80. export-duplicate-default.out
  81. export-duplicate.js
  82. export-duplicate.out
  83. for-in-let-loop-initializers-strict.js
  84. for-in-let-loop-initializers-strict.out
  85. for-in-loop-initializers-destructuring.js
  86. for-in-loop-initializers-destructuring.out
  87. for-in-loop-initializers-strict.js
  88. for-in-loop-initializers-strict.out
  89. for-loop-invalid-lhs.js
  90. for-loop-invalid-lhs.out
  91. for-of-let-loop-initializers.js
  92. for-of-let-loop-initializers.out
  93. for-of-loop-initializers-sloppy.js
  94. for-of-loop-initializers-sloppy.out
  95. for-of-loop-initializers-strict.js
  96. for-of-loop-initializers-strict.out
  97. for-of-throw-in-body.js
  98. for-of-throw-in-body.out
  99. formal-parameters-bad-rest.js
  100. formal-parameters-bad-rest.out
  101. formal-parameters-strict-body.js
  102. formal-parameters-strict-body.out
  103. formal-parameters-trailing-comma.js
  104. formal-parameters-trailing-comma.out
  105. function-sent-escaped.js
  106. function-sent-escaped.out
  107. generators-throw1.js
  108. generators-throw1.out
  109. generators-throw2.js
  110. generators-throw2.out
  111. get-iterator1.js
  112. get-iterator1.out
  113. import-as-eval.js
  114. import-as-eval.out
  115. import-as-redeclaration.js
  116. import-as-redeclaration.out
  117. import-as-reserved-word.js
  118. import-as-reserved-word.out
  119. import-eval.js
  120. import-eval.out
  121. import-redeclaration.js
  122. import-redeclaration.out
  123. import-reserved-word.js
  124. import-reserved-word.out
  125. instanceof-noncallable.js
  126. instanceof-noncallable.out
  127. instanceof-nonobject.js
  128. instanceof-nonobject.out
  129. invalid-spread-2.js
  130. invalid-spread-2.out
  131. invalid-spread.js
  132. invalid-spread.out
  133. isvar.js
  134. isvar.out
  135. let-asi-await-nonasync.js
  136. let-asi-await-nonasync.out
  137. let-asi-yield-nongenerator.js
  138. let-asi-yield-nongenerator.out
  139. let-lexical-declaration-destructuring-brace-in-single-statement.js
  140. let-lexical-declaration-destructuring-brace-in-single-statement.out
  141. let-lexical-declaration-destructuring-in-single-statement.js
  142. let-lexical-declaration-destructuring-in-single-statement.out
  143. let-lexical-declaration-in-single-statement.js
  144. let-lexical-declaration-in-single-statement.out
  145. let-lexical-name-in-array-prohibited.js
  146. let-lexical-name-in-array-prohibited.out
  147. let-lexical-name-in-object-prohibited.js
  148. let-lexical-name-in-object-prohibited.out
  149. let-lexical-name-prohibited.js
  150. let-lexical-name-prohibited.out
  151. message.gyp
  152. message.isolate
  153. message.status
  154. modules-cycle1.js
  155. modules-cycle1.out
  156. modules-cycle2.js
  157. modules-cycle2.out
  158. modules-cycle3.js
  159. modules-cycle3.out
  160. modules-cycle4.js
  161. modules-cycle4.out
  162. modules-cycle5.js
  163. modules-cycle5.out
  164. modules-cycle6.js
  165. modules-cycle6.out
  166. modules-duplicate-export1.js
  167. modules-duplicate-export1.out
  168. modules-duplicate-export2.js
  169. modules-duplicate-export2.out
  170. modules-duplicate-export3.js
  171. modules-duplicate-export3.out
  172. modules-duplicate-export4.js
  173. modules-duplicate-export4.out
  174. modules-import-redeclare1.js
  175. modules-import-redeclare1.out
  176. modules-import-redeclare2.js
  177. modules-import-redeclare2.out
  178. modules-import-redeclare3.js
  179. modules-import-redeclare3.out
  180. modules-import1.js
  181. modules-import1.out
  182. modules-import2.js
  183. modules-import2.out
  184. modules-import3.js
  185. modules-import3.out
  186. modules-import4.js
  187. modules-import4.out
  188. modules-import5.js
  189. modules-import5.out
  190. modules-import6.js
  191. modules-import6.out
  192. modules-skip-cycle2.js
  193. modules-skip-cycle3.js
  194. modules-skip-cycle5.js
  195. modules-skip-cycle6.js
  196. modules-star-conflict1.js
  197. modules-star-conflict1.out
  198. modules-star-conflict2.js
  199. modules-star-conflict2.out
  200. modules-star-default.js
  201. modules-star-default.out
  202. modules-undefined-export1.js
  203. modules-undefined-export1.out
  204. modules-undefined-export2.js
  205. modules-undefined-export2.out
  206. new-target-assignment.js
  207. new-target-assignment.out
  208. new-target-escaped.js
  209. new-target-escaped.out
  210. new-target-for-loop.js
  211. new-target-for-loop.out
  212. new-target-postfix-op.js
  213. new-target-postfix-op.out
  214. new-target-prefix-op.js
  215. new-target-prefix-op.out
  216. nf-yield-in-generator.js
  217. nf-yield-in-generator.out
  218. nf-yield-strict-in-generator.js
  219. nf-yield-strict-in-generator.out
  220. nf-yield-strict.js
  221. nf-yield-strict.out
  222. nfe-yield-generator.js
  223. nfe-yield-generator.out
  224. nfe-yield-strict.js
  225. nfe-yield-strict.out
  226. non-alphanum.js
  227. non-alphanum.out
  228. non-use-strict-hex-escape.js
  229. non-use-strict-hex-escape.out
  230. non-use-strict-octal-escape.js
  231. non-use-strict-octal-escape.out
  232. non-use-strict-uhex-escape.js
  233. non-use-strict-uhex-escape.out
  234. nonstrict-arguments.js
  235. nonstrict-arguments.out
  236. nonstrict-eval.js
  237. nonstrict-eval.out
  238. nonstrict-with.js
  239. nonstrict-with.out
  240. overwritten-builtins.js
  241. overwritten-builtins.out
  242. paren_in_arg_string.js
  243. paren_in_arg_string.out
  244. README.md
  245. redeclaration1.js
  246. redeclaration1.out
  247. redeclaration2.js
  248. redeclaration2.out
  249. redeclaration3.js
  250. redeclaration3.out
  251. replacement-marker-as-argument.js
  252. replacement-marker-as-argument.out
  253. rest-param-class-setter-strict.js
  254. rest-param-class-setter-strict.out
  255. rest-param-object-setter-sloppy.js
  256. rest-param-object-setter-sloppy.out
  257. rest-param-object-setter-strict.js
  258. rest-param-object-setter-strict.out
  259. simple-throw.js
  260. simple-throw.out
  261. strict-formal-parameters.js
  262. strict-formal-parameters.out
  263. strict-octal-indirect-regexp.js
  264. strict-octal-indirect-regexp.out
  265. strict-octal-number.js
  266. strict-octal-number.out
  267. strict-octal-regexp.js
  268. strict-octal-regexp.out
  269. strict-octal-string.js
  270. strict-octal-string.out
  271. strict-octal-use-strict-after.js
  272. strict-octal-use-strict-after.out
  273. strict-octal-use-strict-before.js
  274. strict-octal-use-strict-before.out
  275. strict-with.js
  276. strict-with.out
  277. super-constructor-extra-statement.js
  278. super-constructor-extra-statement.out
  279. super-constructor.js
  280. super-constructor.out
  281. super-in-function.js
  282. super-in-function.out
  283. testcfg.py
  284. tonumber-symbol.js
  285. tonumber-symbol.out
  286. try-catch-finally-no-message.js
  287. try-catch-finally-no-message.out
  288. try-catch-finally-return-in-finally.js
  289. try-catch-finally-return-in-finally.out
  290. try-catch-finally-throw-in-catch-and-finally.js
  291. try-catch-finally-throw-in-catch-and-finally.out
  292. try-catch-finally-throw-in-catch.js
  293. try-catch-finally-throw-in-catch.out
  294. try-catch-finally-throw-in-finally.js
  295. try-catch-finally-throw-in-finally.out
  296. try-catch-lexical-conflict.js
  297. try-catch-lexical-conflict.out
  298. try-catch-variable-conflict.js
  299. try-catch-variable-conflict.out
  300. try-finally-return-in-finally.js
  301. try-finally-return-in-finally.out
  302. try-finally-throw-in-finally.js
  303. try-finally-throw-in-finally.out
  304. try-finally-throw-in-try-and-finally.js
  305. try-finally-throw-in-try-and-finally.out
  306. try-finally-throw-in-try.js
  307. try-finally-throw-in-try.out
  308. unicode-escape-invalid-2.js
  309. unicode-escape-invalid-2.out
  310. unicode-escape-invalid.js
  311. unicode-escape-invalid.out
  312. unicode-escape-undefined.js
  313. unicode-escape-undefined.out
  314. unterminated-arg-list.js
  315. unterminated-arg-list.out
  316. wasm-trap.js
  317. wasm-trap.out
  318. yield-in-arrow-param.js
  319. yield-in-arrow-param.out
  320. yield-in-generator-param.js
  321. yield-in-generator-param.out
test/message/README.md

JavaScript tests with expected output

Tests in test/message pass if the output matches the expected output. Message tests are particularly useful when checking for exact error messages.

Tests and their expected output must have the same filename, with the .js and .out extension.

foo.js
foo.out

All tests must end with an exception. The test runner does not handle output from multiple runs, e.g., --stress-opt. Without an exception, the output will be generated several times and the comparison will fail.

You can use a regex in the expected output. Instead of the exact path. use

*%(basename)s:7: SyntaxError: Detected cycle while resolving name 'a'

Empty lines are ignored in the comparison, but whitespaces are not.

Exact details of the test runner are in testcfg.py.