Skip to content

Commit cc536a0

Browse files
committed
[merge] from master
1 parent 66af315 commit cc536a0

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

assembly/buffer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class Buffer extends Uint8Array {
7474
}
7575
ERROR("Cannot call Buffer.from<T>() where T is not a string, Buffer, ArrayBuffer, Array, or Array-like Object.");
7676
}
77+
7778
public static isBuffer<T>(value: T): bool {
7879
return value instanceof Buffer;
7980
}

tests/buffer.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
function bufferFrom<T>(values: valueof<T>[]): T {
2-
let buffer = instantiate<T>(values.length);
3-
// @ts-ignore
4-
for (let i = 0; i < values.length; i++) buffer[i] = values[i];
5-
return buffer;
6-
}
7-
81
/**
92
* This is the buffer test suite. For each prototype function, put a single test
103
* function call here.

0 commit comments

Comments
 (0)