diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-05-05 16:19:59 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-05-09 20:18:27 +0200 |
commit | 945da6d22d109b17597c2c3bc8ea7d25a12db904 (patch) | |
tree | c435da85cc60e3a2731a9f355acd82b97a5acff3 /node.gyp | |
parent | 60349bbe0d90a91d66aa4ad71c4c2b0d3b08d54c (diff) | |
download | android-node-v8-945da6d22d109b17597c2c3bc8ea7d25a12db904.tar.gz android-node-v8-945da6d22d109b17597c2c3bc8ea7d25a12db904.tar.bz2 android-node-v8-945da6d22d109b17597c2c3bc8ea7d25a12db904.zip |
src: remove static variables from string_search
These variables can as well be stack-allocated. This avoids
relying on global state that is not protected by mutexes.
Thanks to Stephen Belanger for reviewing this change in its original PR.
Refs: https://github.com/ayojs/ayo/pull/82
PR-URL: https://github.com/nodejs/node/pull/20541
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -346,7 +346,6 @@ 'src/spawn_sync.cc', 'src/string_bytes.cc', 'src/string_decoder.cc', - 'src/string_search.cc', 'src/stream_base.cc', 'src/stream_pipe.cc', 'src/stream_wrap.cc', |