镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

v8::String::Value is deprecated #54417

Description

@targos

We should use v8::String::ValueView instead.

Refs:

class V8_EXPORT Value {
public:
V8_DEPRECATE_SOON(
"Prefer using String::ValueView if you can, or string->Write to a "
"buffer if you cannot.")

/cc @anonrig

Activity

  1. targos commented on Aug 17, 2024

    @targos
    MemberAuthor

    Here are the places where we use it:

    
    [51/238] CXX obj/src/libnode.node_buffer.o
    ../../src/node_buffer.cc:969:19: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
        String::Value needle_value(isolate, needle);
                      ^
    
    ../../src/node_buffer.cc:1299:19: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
        String::Value value(env->isolate(), input);
                      ^
    
    ../../src/node_buffer.cc:1359:19: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
        String::Value value(env->isolate(), input);
                      ^
    
    [11/113] CXX obj/src/libnode.inspector_js_api.o
    ../../src/inspector_js_api.cc:249:17: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
      String::Value task_name_value(args.GetIsolate(), task_name);
                    ^
    
    [143/272] CXX obj/src/libnode.string_bytes.o
    ../../src/string_bytes.cc:325:23: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
            String::Value value(isolate, str);
                          ^
    
    ../../src/string_bytes.cc:381:23: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
            String::Value value(isolate, str);
                          ^
    
    ../../src/string_bytes.cc:403:23: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
            String::Value value(isolate, str);
                          ^
    
    ../../src/string_bytes.cc:497:21: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
          String::Value value(isolate, str);
                        ^
    
    ../../src/string_bytes.cc:503:21: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
          String::Value value(isolate, str);
                        ^
    
    [159/272] CXX obj/src/libnode.inspector_js_api.o
    ../../src/inspector_js_api.cc:249:17: warning: 'Value' is deprecated: Prefer using String::ValueView if you can, or string->Write to a buffer if you cannot. [-Wdeprecated-declarations]
      String::Value task_name_value(args.GetIsolate(), task_name);
                    ^
    
  2. added
    v8 engineIssues and PRs related to the V8 dependency.
    deprecationsIssues and PRs related to deprecations.
    on Aug 17, 2024
  3. added a commit that references this issue on Oct 29, 2024
    45c6a9e
  4. added a commit that references this issue on Nov 1, 2024
    efa142c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecationsIssues and PRs related to deprecations.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions