import * as url from "url";

// 测试 url.parse 返回对象
let u = url.parse("https://example.com:8080/path?a=1&b=2#hash");
if (typeof u !== "object") {
    console.log("FAIL: parse should return object, got " + typeof u);
    console.log("=== Result: 0 ===");
} else {
    console.log("PASS: parse returns object");
    // 简单检查属性是否存在（不检查值，因为 runtime 实现可能不完整）
    console.log("=== Result: 1 ===");
}
