Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
273 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 | var $ = require('../internals/export');
|
---|
| 3 |
|
---|
| 4 | // `URL.prototype.toJSON` method
|
---|
| 5 | // https://url.spec.whatwg.org/#dom-url-tojson
|
---|
| 6 | $({ target: 'URL', proto: true, enumerable: true }, {
|
---|
| 7 | toJSON: function toJSON() {
|
---|
| 8 | return URL.prototype.toString.call(this);
|
---|
| 9 | }
|
---|
| 10 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.