gecko-dev/testing/web-platform/tests/url/url-tojson.any.js

5 строки
123 B
JavaScript

test(() => {
const a = new URL("https://example.com/")
assert_equals(JSON.stringify(a), "\"https://example.com/\"")
})