mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
f698bc70e2
This change makes DuckDB example work: https://github.com/denoland/deno/issues/23656.
15 lines
425 B
JavaScript
15 lines
425 B
JavaScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { assert, assertEquals, loadTestLibrary } from "./common.js";
|
|
|
|
const object = loadTestLibrary();
|
|
|
|
Deno.test("napi object", function () {
|
|
const r = object.test_object_new(1, "hello");
|
|
assertEquals(typeof r, "object");
|
|
assertEquals(r[0], 1);
|
|
assertEquals(r[1], "hello");
|
|
|
|
const r1 = object.test_object_get(r);
|
|
assert(r === r1);
|
|
});
|