上游保留的浏览器 JS 工具映射;不改变参数类型或添加隐式转换。 调用 JSON.stringify 编码 obj;同步返回 JS 字符串,互操作异常向调用方传播。
obj
@JS('JSON.stringify') external String stringify(Object? obj);