opal 1.6.1 → 1.7.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +17 -0
  3. data/Gemfile +1 -0
  4. data/HACKING.md +47 -26
  5. data/UNRELEASED.md +28 -0
  6. data/benchmark/benchmarks +415 -103
  7. data/benchmark/bm_call_overhead.yml +28 -0
  8. data/benchmark/run.rb +61 -40
  9. data/docs/cdp_common.json +3364 -0
  10. data/docs/cdp_common.md +18 -0
  11. data/docs/{headless_chrome.md → headless_browsers.md} +31 -12
  12. data/lib/opal/ast/builder.rb +1 -1
  13. data/lib/opal/builder.rb +6 -1
  14. data/lib/opal/builder_processors.rb +5 -3
  15. data/lib/opal/cache.rb +1 -7
  16. data/lib/opal/cli_options.rb +72 -58
  17. data/lib/opal/cli_runners/chrome.rb +47 -9
  18. data/lib/opal/cli_runners/chrome_cdp_interface.rb +238 -112
  19. data/lib/opal/cli_runners/compiler.rb +146 -13
  20. data/lib/opal/cli_runners/deno.rb +32 -0
  21. data/lib/opal/cli_runners/firefox.rb +350 -0
  22. data/lib/opal/cli_runners/firefox_cdp_interface.rb +212 -0
  23. data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface.cmd +17 -0
  24. data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface.ps1 +28 -0
  25. data/lib/opal/cli_runners/node_modules/.package-lock.json +41 -0
  26. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE +1 -1
  27. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md +322 -182
  28. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js +99 -114
  29. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js +1 -11
  30. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js +16 -11
  31. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js +41 -33
  32. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js +224 -214
  33. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js +71 -191
  34. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js +26 -6
  35. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json +20788 -9049
  36. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js +10 -3
  37. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json +59 -123
  38. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js +25 -32
  39. data/lib/opal/cli_runners/node_modules/commander/History.md +298 -0
  40. data/lib/opal/cli_runners/node_modules/commander/LICENSE +22 -0
  41. data/lib/opal/cli_runners/node_modules/commander/Readme.md +217 -61
  42. data/lib/opal/cli_runners/node_modules/commander/index.js +431 -145
  43. data/lib/opal/cli_runners/node_modules/commander/package.json +16 -79
  44. data/lib/opal/cli_runners/node_modules/ws/README.md +334 -98
  45. data/lib/opal/cli_runners/node_modules/ws/browser.js +8 -0
  46. data/lib/opal/cli_runners/node_modules/ws/index.js +5 -10
  47. data/lib/opal/cli_runners/node_modules/ws/lib/buffer-util.js +129 -0
  48. data/lib/opal/cli_runners/node_modules/ws/lib/constants.js +10 -0
  49. data/lib/opal/cli_runners/node_modules/ws/lib/event-target.js +184 -0
  50. data/lib/opal/cli_runners/node_modules/ws/lib/extension.js +223 -0
  51. data/lib/opal/cli_runners/node_modules/ws/lib/limiter.js +55 -0
  52. data/lib/opal/cli_runners/node_modules/ws/lib/permessage-deflate.js +518 -0
  53. data/lib/opal/cli_runners/node_modules/ws/lib/receiver.js +607 -0
  54. data/lib/opal/cli_runners/node_modules/ws/lib/sender.js +409 -0
  55. data/lib/opal/cli_runners/node_modules/ws/lib/stream.js +180 -0
  56. data/lib/opal/cli_runners/node_modules/ws/lib/validation.js +104 -0
  57. data/lib/opal/cli_runners/node_modules/ws/lib/websocket-server.js +447 -0
  58. data/lib/opal/cli_runners/node_modules/ws/lib/websocket.js +1195 -0
  59. data/lib/opal/cli_runners/node_modules/ws/package.json +40 -106
  60. data/lib/opal/cli_runners/package-lock.json +62 -0
  61. data/lib/opal/cli_runners/package.json +1 -1
  62. data/lib/opal/cli_runners.rb +26 -4
  63. data/lib/opal/nodes/args/prepare_post_args.rb +2 -2
  64. data/lib/opal/nodes/def.rb +8 -8
  65. data/lib/opal/nodes/iter.rb +12 -12
  66. data/lib/opal/nodes/logic.rb +1 -1
  67. data/lib/opal/nodes/masgn.rb +2 -2
  68. data/lib/opal/parser/with_ruby_lexer.rb +1 -1
  69. data/lib/opal/paths.rb +14 -0
  70. data/lib/opal/rewriter.rb +2 -0
  71. data/lib/opal/rewriters/forward_args.rb +52 -4
  72. data/lib/opal/rewriters/targeted_patches.rb +94 -0
  73. data/lib/opal/version.rb +1 -1
  74. data/opal/corelib/basic_object.rb +1 -1
  75. data/opal/corelib/boolean.rb +2 -2
  76. data/opal/corelib/class.rb +11 -0
  77. data/opal/corelib/constants.rb +3 -3
  78. data/opal/corelib/enumerable.rb +4 -0
  79. data/opal/corelib/enumerator.rb +1 -1
  80. data/opal/corelib/hash.rb +2 -2
  81. data/opal/corelib/helpers.rb +1 -1
  82. data/opal/corelib/kernel.rb +3 -3
  83. data/opal/corelib/method.rb +1 -1
  84. data/opal/corelib/module.rb +29 -8
  85. data/opal/corelib/proc.rb +7 -5
  86. data/opal/corelib/runtime.js +141 -78
  87. data/opal/corelib/set.rb +252 -0
  88. data/opal/corelib/string.rb +2 -1
  89. data/opal/corelib/time.rb +2 -2
  90. data/opal/opal.rb +1 -0
  91. data/opal.gemspec +1 -0
  92. data/spec/filters/bugs/array.rb +22 -13
  93. data/spec/filters/bugs/base64.rb +5 -5
  94. data/spec/filters/bugs/basicobject.rb +16 -8
  95. data/spec/filters/bugs/bigdecimal.rb +161 -160
  96. data/spec/filters/bugs/binding.rb +10 -10
  97. data/spec/filters/bugs/class.rb +8 -8
  98. data/spec/filters/bugs/complex.rb +2 -1
  99. data/spec/filters/bugs/date.rb +79 -81
  100. data/spec/filters/bugs/datetime.rb +29 -29
  101. data/spec/filters/bugs/delegate.rb +1 -3
  102. data/spec/filters/bugs/encoding.rb +69 -69
  103. data/spec/filters/bugs/enumerable.rb +22 -20
  104. data/spec/filters/bugs/enumerator.rb +88 -85
  105. data/spec/filters/bugs/exception.rb +46 -40
  106. data/spec/filters/bugs/file.rb +32 -32
  107. data/spec/filters/bugs/float.rb +26 -21
  108. data/spec/filters/bugs/freeze.rb +88 -0
  109. data/spec/filters/bugs/hash.rb +39 -38
  110. data/spec/filters/bugs/integer.rb +57 -44
  111. data/spec/filters/bugs/io.rb +1 -1
  112. data/spec/filters/bugs/kernel.rb +349 -269
  113. data/spec/filters/bugs/language.rb +220 -188
  114. data/spec/filters/bugs/main.rb +5 -3
  115. data/spec/filters/bugs/marshal.rb +38 -38
  116. data/spec/filters/bugs/math.rb +2 -1
  117. data/spec/filters/bugs/method.rb +73 -62
  118. data/spec/filters/bugs/module.rb +163 -143
  119. data/spec/filters/bugs/numeric.rb +6 -6
  120. data/spec/filters/bugs/objectspace.rb +16 -16
  121. data/spec/filters/bugs/openstruct.rb +1 -1
  122. data/spec/filters/bugs/pack_unpack.rb +51 -51
  123. data/spec/filters/bugs/pathname.rb +7 -7
  124. data/spec/filters/bugs/proc.rb +63 -63
  125. data/spec/filters/bugs/random.rb +7 -6
  126. data/spec/filters/bugs/range.rb +12 -9
  127. data/spec/filters/bugs/rational.rb +8 -7
  128. data/spec/filters/bugs/regexp.rb +49 -48
  129. data/spec/filters/bugs/ruby-32.rb +56 -0
  130. data/spec/filters/bugs/set.rb +30 -30
  131. data/spec/filters/bugs/singleton.rb +4 -4
  132. data/spec/filters/bugs/string.rb +187 -99
  133. data/spec/filters/bugs/stringio.rb +7 -0
  134. data/spec/filters/bugs/stringscanner.rb +68 -68
  135. data/spec/filters/bugs/struct.rb +11 -9
  136. data/spec/filters/bugs/symbol.rb +1 -1
  137. data/spec/filters/bugs/time.rb +78 -63
  138. data/spec/filters/bugs/trace_point.rb +4 -4
  139. data/spec/filters/bugs/unboundmethod.rb +32 -17
  140. data/spec/filters/bugs/warnings.rb +8 -12
  141. data/spec/filters/unsupported/array.rb +24 -107
  142. data/spec/filters/unsupported/basicobject.rb +12 -12
  143. data/spec/filters/unsupported/bignum.rb +27 -52
  144. data/spec/filters/unsupported/class.rb +1 -2
  145. data/spec/filters/unsupported/delegator.rb +3 -3
  146. data/spec/filters/unsupported/enumerable.rb +2 -9
  147. data/spec/filters/unsupported/enumerator.rb +2 -11
  148. data/spec/filters/unsupported/file.rb +1 -1
  149. data/spec/filters/unsupported/float.rb +28 -47
  150. data/spec/filters/unsupported/hash.rb +8 -14
  151. data/spec/filters/unsupported/integer.rb +75 -91
  152. data/spec/filters/unsupported/kernel.rb +17 -35
  153. data/spec/filters/unsupported/language.rb +11 -19
  154. data/spec/filters/unsupported/marshal.rb +22 -41
  155. data/spec/filters/unsupported/matchdata.rb +28 -52
  156. data/spec/filters/unsupported/math.rb +1 -1
  157. data/spec/filters/unsupported/privacy.rb +229 -285
  158. data/spec/filters/unsupported/range.rb +1 -5
  159. data/spec/filters/unsupported/regexp.rb +40 -66
  160. data/spec/filters/unsupported/set.rb +2 -2
  161. data/spec/filters/unsupported/singleton.rb +4 -4
  162. data/spec/filters/unsupported/string.rb +305 -508
  163. data/spec/filters/unsupported/struct.rb +3 -4
  164. data/spec/filters/unsupported/symbol.rb +15 -18
  165. data/spec/filters/unsupported/thread.rb +1 -7
  166. data/spec/filters/unsupported/time.rb +159 -202
  167. data/spec/filters/unsupported/usage_of_files.rb +170 -259
  168. data/spec/lib/builder_spec.rb +4 -4
  169. data/spec/lib/rewriters/forward_args_spec.rb +32 -12
  170. data/spec/mspec-opal/runner.rb +2 -0
  171. data/spec/ruby_specs +4 -0
  172. data/stdlib/deno/base.rb +28 -0
  173. data/stdlib/deno/file.rb +340 -0
  174. data/stdlib/{headless_chrome.rb → headless_browser/base.rb} +1 -1
  175. data/stdlib/headless_browser/file.rb +15 -0
  176. data/stdlib/headless_browser.rb +4 -0
  177. data/stdlib/native.rb +1 -1
  178. data/stdlib/nodejs/file.rb +5 -0
  179. data/stdlib/opal/platform.rb +8 -6
  180. data/stdlib/opal-platform.rb +14 -8
  181. data/stdlib/set.rb +1 -258
  182. data/tasks/benchmarking.rake +62 -19
  183. data/tasks/performance.rake +1 -1
  184. data/tasks/testing.rake +5 -3
  185. data/test/nodejs/test_file.rb +29 -10
  186. data/test/opal/http_server.rb +28 -11
  187. data/test/opal/unsupported_and_bugs.rb +2 -1
  188. metadata +91 -52
  189. data/lib/opal/cli_runners/node_modules/ultron/LICENSE +0 -22
  190. data/lib/opal/cli_runners/node_modules/ultron/index.js +0 -138
  191. data/lib/opal/cli_runners/node_modules/ultron/package.json +0 -112
  192. data/lib/opal/cli_runners/node_modules/ws/SECURITY.md +0 -33
  193. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js +0 -56
  194. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js +0 -15
  195. data/lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js +0 -28
  196. data/lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js +0 -158
  197. data/lib/opal/cli_runners/node_modules/ws/lib/Extensions.js +0 -69
  198. data/lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js +0 -339
  199. data/lib/opal/cli_runners/node_modules/ws/lib/Receiver.js +0 -520
  200. data/lib/opal/cli_runners/node_modules/ws/lib/Sender.js +0 -438
  201. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js +0 -9
  202. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.js +0 -17
  203. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js +0 -705
  204. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js +0 -336
  205. data/spec/filters/bugs/boolean.rb +0 -3
  206. data/spec/filters/bugs/matrix.rb +0 -3
  207. data/spec/filters/unsupported/fixnum.rb +0 -15
  208. data/spec/filters/unsupported/freeze.rb +0 -102
  209. data/spec/filters/unsupported/pathname.rb +0 -4
  210. data/spec/filters/unsupported/proc.rb +0 -4
  211. data/spec/filters/unsupported/random.rb +0 -5
  212. data/spec/filters/unsupported/taint.rb +0 -162
@@ -1,162 +0,0 @@
1
- # NOTE: run bin/format-filters after changing this file
2
- opal_unsupported_filter "taint" do
3
- fails "Array#pack with format 'A' returns a tainted string when a pack argument is tainted"
4
- fails "Array#pack with format 'A' returns a tainted string when an empty format is tainted"
5
- fails "Array#pack with format 'A' returns a tainted string when the format is tainted"
6
- fails "Array#pack with format 'A' returns a trusted string when the array is untrusted"
7
- fails "Array#pack with format 'A' returns a untrusted string when a pack argument is untrusted"
8
- fails "Array#pack with format 'A' returns a untrusted string when the empty format is untrusted"
9
- fails "Array#pack with format 'A' returns a untrusted string when the format is untrusted"
10
- fails "Array#pack with format 'A' taints the output string if the format string is tainted"
11
- fails "Array#pack with format 'C' taints the output string if the format string is tainted"
12
- fails "Array#pack with format 'L' taints the output string if the format string is tainted"
13
- fails "Array#pack with format 'U' taints the output string if the format string is tainted"
14
- fails "Array#pack with format 'a' returns a tainted string when a pack argument is tainted"
15
- fails "Array#pack with format 'a' returns a tainted string when an empty format is tainted"
16
- fails "Array#pack with format 'a' returns a tainted string when the format is tainted"
17
- fails "Array#pack with format 'a' returns a trusted string when the array is untrusted"
18
- fails "Array#pack with format 'a' returns a untrusted string when a pack argument is untrusted"
19
- fails "Array#pack with format 'a' returns a untrusted string when the empty format is untrusted"
20
- fails "Array#pack with format 'a' returns a untrusted string when the format is untrusted"
21
- fails "Array#pack with format 'a' taints the output string if the format string is tainted"
22
- fails "Array#pack with format 'c' taints the output string if the format string is tainted"
23
- fails "Array#pack with format 'l' taints the output string if the format string is tainted"
24
- fails "Array#pack with format 'u' does not return a tainted string when the array is tainted" # RuntimeError: Unsupported pack directive "u" (no chunk reader defined)
25
- fails "Array#pack with format 'u' returns a tainted string when a pack argument is tainted" # RuntimeError: Unsupported pack directive "u" (no chunk reader defined)
26
- fails "Array#pack with format 'u' returns a tainted string when an empty format is tainted" # Expected false to be true
27
- fails "Array#pack with format 'u' returns a tainted string when the format is tainted" # RuntimeError: Unsupported pack directive "u" (no chunk reader defined)
28
- fails "Array#pack with format 'u' returns a trusted string when the array is untrusted" # NoMethodError: undefined method `untrust' for ["abcd", 32]
29
- fails "Array#pack with format 'u' returns a untrusted string when a pack argument is untrusted" # NoMethodError: undefined method `untrust' for "abcd"
30
- fails "Array#pack with format 'u' returns a untrusted string when the empty format is untrusted" # NoMethodError: undefined method `untrust' for ""
31
- fails "Array#pack with format 'u' returns a untrusted string when the format is untrusted" # NoMethodError: undefined method `untrust' for "u3C"
32
- fails "Array#pack with format 'u' taints the output string if the format string is tainted"
33
- fails "Hash#reject with extra state does not taint the resulting hash"
34
- fails "Kernel#inspect returns a tainted string if self is tainted"
35
- fails "Module#append_features copies own tainted status to the given module"
36
- fails "Module#append_features copies own untrusted status to the given module"
37
- fails "Module#extend_object does not copy own tainted status to the given object"
38
- fails "Module#extend_object does not copy own untrusted status to the given object"
39
- fails "Module#prepend_features copies own tainted status to the given module"
40
- fails "Module#prepend_features copies own untrusted status to the given module"
41
- fails "String#% doesn't taint the result for %E when argument is tainted"
42
- fails "String#% doesn't taint the result for %G when argument is tainted"
43
- fails "String#% doesn't taint the result for %e when argument is tainted"
44
- fails "String#% doesn't taint the result for %f when argument is tainted"
45
- fails "String#% doesn't taint the result for %g when argument is tainted"
46
- fails "String#[] with Regexp always taints resulting strings when self or regexp is tainted"
47
- fails "String#[] with Regexp returns an untrusted string if the regexp is untrusted"
48
- fails "String#byteslice with Range always taints resulting strings when self is tainted"
49
- fails "String#byteslice with index, length always taints resulting strings when self is tainted"
50
- fails "String#delete_prefix taints resulting strings when other is tainted" # NoMethodError: undefined method `delete_prefix' for "hello":String
51
- fails "String#delete_suffix taints resulting strings when other is tainted" # NoMethodError: undefined method `delete_suffix' for "hello":String
52
- fails "String#dump taints the result if self is tainted"
53
- fails "String#slice with Regexp always taints resulting strings when self or regexp is tainted"
54
- fails "String#slice with Regexp returns an untrusted string if the regexp is untrusted"
55
- fails "String#unpack with format 'A' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "A2"
56
- fails "String#unpack with format 'A' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
57
- fails "String#unpack with format 'A' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
58
- fails "String#unpack with format 'A' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
59
- fails "String#unpack with format 'A' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "A2"
60
- fails "String#unpack with format 'A' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
61
- fails "String#unpack with format 'A' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
62
- fails "String#unpack with format 'A' taints returned strings if given a tainted packed string" # Expected false to be true
63
- fails "String#unpack with format 'A' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
64
- fails "String#unpack with format 'B' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "B2"
65
- fails "String#unpack with format 'B' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
66
- fails "String#unpack with format 'B' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
67
- fails "String#unpack with format 'B' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
68
- fails "String#unpack with format 'B' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "B2"
69
- fails "String#unpack with format 'B' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
70
- fails "String#unpack with format 'B' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
71
- fails "String#unpack with format 'B' taints returned strings if given a tainted packed string" # Expected false to be true
72
- fails "String#unpack with format 'B' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
73
- fails "String#unpack with format 'H' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "H2"
74
- fails "String#unpack with format 'H' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
75
- fails "String#unpack with format 'H' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
76
- fails "String#unpack with format 'H' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
77
- fails "String#unpack with format 'H' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "H2"
78
- fails "String#unpack with format 'H' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
79
- fails "String#unpack with format 'H' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
80
- fails "String#unpack with format 'H' taints returned strings if given a tainted packed string" # Expected false to be true
81
- fails "String#unpack with format 'H' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
82
- fails "String#unpack with format 'M' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "M2"
83
- fails "String#unpack with format 'M' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
84
- fails "String#unpack with format 'M' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
85
- fails "String#unpack with format 'M' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
86
- fails "String#unpack with format 'M' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "M2"
87
- fails "String#unpack with format 'M' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
88
- fails "String#unpack with format 'M' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
89
- fails "String#unpack with format 'M' taints returned strings if given a tainted packed string" # Expected false to be true
90
- fails "String#unpack with format 'M' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
91
- fails "String#unpack with format 'U' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "U2"
92
- fails "String#unpack with format 'U' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
93
- fails "String#unpack with format 'U' does not untrust returned arrays if given an trusted packed string" # Exception: Cannot read property '$__id__' of undefined
94
- fails "String#unpack with format 'U' does not untrust returned arrays if given an untrusted format string" # Exception: Cannot read property '$__id__' of undefined
95
- fails "String#unpack with format 'U' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "U2"
96
- fails "String#unpack with format 'U' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for nil
97
- fails "String#unpack with format 'U' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for nil
98
- fails "String#unpack with format 'U' taints returned strings if given a tainted packed string" # Expected false to be true
99
- fails "String#unpack with format 'U' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
100
- fails "String#unpack with format 'Z' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "Z2"
101
- fails "String#unpack with format 'Z' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
102
- fails "String#unpack with format 'Z' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
103
- fails "String#unpack with format 'Z' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
104
- fails "String#unpack with format 'Z' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "Z2"
105
- fails "String#unpack with format 'Z' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
106
- fails "String#unpack with format 'Z' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
107
- fails "String#unpack with format 'Z' taints returned strings if given a tainted packed string" # Expected false to be true
108
- fails "String#unpack with format 'Z' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
109
- fails "String#unpack with format 'a' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "a2"
110
- fails "String#unpack with format 'a' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
111
- fails "String#unpack with format 'a' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
112
- fails "String#unpack with format 'a' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
113
- fails "String#unpack with format 'a' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "a2"
114
- fails "String#unpack with format 'a' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
115
- fails "String#unpack with format 'a' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
116
- fails "String#unpack with format 'a' taints returned strings if given a tainted packed string" # Expected false to be true
117
- fails "String#unpack with format 'a' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
118
- fails "String#unpack with format 'b' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "b2"
119
- fails "String#unpack with format 'b' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
120
- fails "String#unpack with format 'b' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
121
- fails "String#unpack with format 'b' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
122
- fails "String#unpack with format 'b' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "b2"
123
- fails "String#unpack with format 'b' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
124
- fails "String#unpack with format 'b' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
125
- fails "String#unpack with format 'b' taints returned strings if given a tainted packed string" # Expected false to be true
126
- fails "String#unpack with format 'b' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
127
- fails "String#unpack with format 'h' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "h2"
128
- fails "String#unpack with format 'h' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
129
- fails "String#unpack with format 'h' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
130
- fails "String#unpack with format 'h' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
131
- fails "String#unpack with format 'h' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "h2"
132
- fails "String#unpack with format 'h' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
133
- fails "String#unpack with format 'h' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
134
- fails "String#unpack with format 'h' taints returned strings if given a tainted packed string" # Expected false to be true
135
- fails "String#unpack with format 'h' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
136
- fails "String#unpack with format 'm' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "m2"
137
- fails "String#unpack with format 'm' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
138
- fails "String#unpack with format 'm' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
139
- fails "String#unpack with format 'm' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
140
- fails "String#unpack with format 'm' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "m2"
141
- fails "String#unpack with format 'm' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
142
- fails "String#unpack with format 'm' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
143
- fails "String#unpack with format 'm' taints returned strings if given a tainted packed string" # Expected false to be true
144
- fails "String#unpack with format 'm' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
145
- fails "String#unpack with format 'u' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "u2"
146
- fails "String#unpack with format 'u' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
147
- fails "String#unpack with format 'u' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
148
- fails "String#unpack with format 'u' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
149
- fails "String#unpack with format 'u' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "u2"
150
- fails "String#unpack with format 'u' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
151
- fails "String#unpack with format 'u' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
152
- fails "String#unpack with format 'u' taints returned strings if given a tainted packed string" # Expected false to be true
153
- fails "String#unpack with format 'u' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
154
- fails "StringScanner#getbyte taints the returned String if the input was tainted"
155
- fails "StringScanner#getch taints the returned String if the input was tainted"
156
- fails "StringScanner#matched taints the returned String if the input was tainted"
157
- fails "StringScanner#peek taints the returned String if the input was tainted"
158
- fails "StringScanner#peep taints the returned String if the input was tainted"
159
- fails "StringScanner#post_match taints the returned String if the input was tainted"
160
- fails "StringScanner#pre_match taints the returned String if the input was tainted"
161
- fails "StringScanner#rest taints the returned String if the input was tainted"
162
- end