summaryrefslogtreecommitdiff
path: root/src/string_decoder.cc
diff options
context:
space:
mode:
authorlegendecas <legendecas@gmail.com>2022-08-02 00:01:02 +0800
committerlegendecas <legendecas@gmail.com>2022-08-02 00:01:02 +0800
commita7e5b413efd5f98d4b9acf39ff5e87ddbd8c63ff (patch)
treeb3ae111dcfe5ab8db74df9d355aa009a9ea024c7 /src/string_decoder.cc
parent7f7a899fa5f3b192d4f503f6602f24f7ff4ec57a (diff)
downloadnode-new-a7e5b413efd5f98d4b9acf39ff5e87ddbd8c63ff.tar.gz
src: split property helpers from node::Environment
PR-URL: https://github.com/nodejs/node/pull/44056 Refs: https://github.com/nodejs/node/issues/42528 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Feng Yu <F3n67u@outlook.com>
Diffstat (limited to 'src/string_decoder.cc')
-rw-r--r--src/string_decoder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_decoder.cc b/src/string_decoder.cc
index a915f5744f..b447474c09 100644
--- a/src/string_decoder.cc
+++ b/src/string_decoder.cc
@@ -328,8 +328,8 @@ void InitializeStringDecoder(Local<Object> target,
FIXED_ONE_BYTE_STRING(isolate, "kSize"),
Integer::New(isolate, sizeof(StringDecoder))).Check();
- env->SetMethod(target, "decode", DecodeData);
- env->SetMethod(target, "flush", FlushData);
+ SetMethod(context, target, "decode", DecodeData);
+ SetMethod(context, target, "flush", FlushData);
}
} // anonymous namespace