mirror of
https://github.com/nodejs/node.git
synced 2026-12-04 02:19:15 -05:00
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>
This commit is contained in:
78 files changed
+1471
-1255
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user