Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix NewFromUtf8 compiler warning #24216

Closed
wants to merge 1 commit into from

Commits on Nov 7, 2018

  1. test: fix NewFromUtf8 compiler warning

    Currently there are a number of compiler warnings like the following:
    
    ../binding.cc:6:41:
    warning: 'NewFromUtf8' is deprecated:
    Use maybe version [-Wdeprecated-declarations]
      args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world"));
                                            ^
    /node/deps/v8/include/v8.h:2883:10:
    note: 'NewFromUtf8' has been explicitly marked deprecated here
      static V8_DEPRECATE_SOON(
             ^
    /node/deps/v8/include/v8config.h:341:29:
    note: expanded from macro 'V8_DEPRECATE_SOON'
      declarator __attribute__((deprecated(message)))
                                ^
    
    This commit updates the code to use the maybe versions.
    danbev committed Nov 7, 2018
    Configuration menu
    Copy the full SHA
    e37c329 View commit details
    Browse the repository at this point in the history