Commit c7de98a7 authored by James M Snell's avatar James M Snell Committed by Evan Lucas
Browse files

url: add ToObject method to native URL class

Provides a factory method to convert a native URL class
into a JS URL object.

```c++
Environment* env = ...

URL url("http://example.org/a/b/c?query#fragment");

MaybeLocal<Value> val = url.ToObject(env);
```

PR-URL: https://github.com/nodejs/node/pull/12507


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 4b6097d3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment