Skip to content

Commit

Permalink
Add TODO notice that jsg::v8Str(...) is being replaced by js.str(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Aug 21, 2023
1 parent b006b9e commit 280b2b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/workerd/jsg/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ void recursivelyFreeze(v8::Local<v8::Context> context, v8::Local<v8::Value> valu
v8::Local<v8::Value> deepClone(v8::Local<v8::Context> context, v8::Local<v8::Value> value);
// Make a deep clone of the given object.

// TODO(cleanup): Call sites should migrate to the new js.str(...) variants on jsg::Lock
// rather than calling v8Str directly. Once the migration is a big further along, v8Str
// and it's variants will be explicitly marked deprecated.
template <typename T>
v8::Local<v8::String> v8Str(v8::Isolate* isolate, kj::ArrayPtr<T> ptr,
v8::NewStringType newType = v8::NewStringType::kNormal) {
Expand Down

0 comments on commit 280b2b9

Please sign in to comment.