Skip to content

test: the uint8-array in inspect-scenario sometimes gets neutered #150

@joyeecheung

Description

@joyeecheung
ok 13 addr of `Object` should match
[TEST] [LINE]     [0]=0x0000134ccad82201:<null>,
[TEST] [LINE]     [4]=0x0000134ccad822d1:<undefined>,
[TEST] [LINE]     [23]=0x0000134c51ddf5d9:<JSRegExp source=/regexp/>,
[TEST] [LINE]     [25]=0x0000134cce90b1c9:<function: c.hashmap.(anonymous function) at /Users/joyee/projects/llnode/test/fixtures/inspect-scenario.js:63:19>}
[TEST] [LINE]   properties {
[TEST] [LINE]     .some-key=<Smi: 42>,
[TEST] [LINE]     .other-key=0x0000134cce907fd1:<String: "ohai">,
[TEST] [LINE]     .cons-string=0x0000134c51dde779:<String: "this could be a ...">,
[TEST] [LINE]     .internalized-string=0x0000134cce908099:<String: "foobar">,
[TEST] [LINE]     .thin-string=0x0000134c51dde821:<String: "foobar">,
[TEST] [LINE]     .externalized-string=0x0000134cce908151:<String: "(external)">,
[TEST] [LINE]     .sliced-externalized-string=0x0000134c51dde9e9:<String: "(external)">,
[TEST] [LINE]     .array=0x0000134c51ddeb19:<Array: length=6>,
[TEST] [LINE]     .long-array=0x0000134c51ddeca9:<Array: length=20>,
[TEST] [LINE]     .array-buffer=0x0000134c51ddeff1:<ArrayBuffer: backingStore=0x0000000102700ef0, byteLength=5>,
[TEST] [LINE]     .uint8-array=0x0000134c51ddf0b9:<ArrayBufferView [neutered]>,
[TEST] [LINE]     .buffer=0x0000134c51ddf431:<ArrayBufferView: backingStore=0x000000010280d600, byteOffset=2048, byteLength=6>,
[TEST] [LINE]     .scoped=<unknown field type>}>
ok 14 [0] null element
ok 15 [4] undefined element
ok 16 [23] RegExp element
ok 17 [25] Arrow Function element
ok 18 .some-key property
ok 19 .other-key property
ok 20 .array JSArray property
ok 21 .array JSArray property
ok 22 .array-buffer JSArrayBuffer property
not ok 23 .uint8-array JSArrayBufferView property
  ---
    operator: ok
    expected: true
    actual:   null
    at: sess.linesUntil (/Users/joyee/projects/llnode/test/inspect-test.js:103:7)
  ...
/Users/joyee/projects/llnode/test/inspect-test.js:104
    uint8Array = uint8ArrayMatch[1];

Discovered during investigation of #144

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions