#[
autogenerated by docgen
loc: /build/nim/src/nim/lib/std/private/jsutils.nim(49, 5)
rdoccmd: 
]#
import std/assertions
import "/build/nim/src/nim/lib/std/private/jsutils.nim"
{.line: ("/build/nim/src/nim/lib/std/private/jsutils.nim", 49, 5).}:
  import std/[jsffi, jsbigints]
  type A = ref object
  assert 1.toJs.getProtoName == "[object Number]"
  assert "a".toJs.getProtoName == "[object String]"
  assert big"1".toJs.getProtoName == "[object BigInt]"
  assert false.toJs.getProtoName == "[object Boolean]"
  assert (a: 1).toJs.getProtoName == "[object Object]"
  assert A.default.toJs.getProtoName == "[object Null]"
  assert [1].toJs.getProtoName == "[object Int32Array]" # implementation defined
  assert @[1].toJs.getProtoName == "[object Array]" # ditto

