Skip to content

Commit

Permalink
3.8 scope not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
pevers committed Jun 1, 2020
1 parent 12db9ae commit 2a5eb62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/node/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * as types from "./_util/_util_types.ts";
export { callbackify } from "./_util/_util_callbackify.ts";

export function isArray(value: unknown): boolean {
Expand Down Expand Up @@ -81,3 +80,5 @@ export const TextDecoder = _TextDecoder;
/** The global TextEncoder */
export type TextEncoder = import("./_utils.ts")._TextEncoder;
export const TextEncoder = _TextEncoder;

export const types = import("./_util/_util_types.rts");
8 changes: 8 additions & 0 deletions std/node/util_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,11 @@ test({
assert(te instanceof TextEncoder);
},
});

test({
name: "[util] isDate",
fn() {
// Test verifies the method is exposed. See _util/_util_types_test for details
assert(util.types.isDate(new Date()));
}
})

0 comments on commit 2a5eb62

Please sign in to comment.