Skip to content

Commit cf52847

Browse files
committed
Correction of guards of Buffer.utf8Write/Slice tests.
1 parent 558a802 commit cf52847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graal-nodejs/test/graal/unit/buffer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('Buffer.utf8Write', function() {
9393
it('length is zero', function() {
9494
assert.strictEqual(Buffer.alloc(0).utf8Write.length, 0);
9595
});
96-
if (typeof java !== undefined) {
96+
if (typeof java !== "undefined") {
9797
it('should accept interop buffer', function() {
9898
var byteLength = 8;
9999
var offset = 4;
@@ -159,7 +159,7 @@ describe('Buffer.utf8Slice', function() {
159159
it('length is zero', function() {
160160
assert.strictEqual(Buffer.alloc(0).utf8Slice.length, 0);
161161
});
162-
if (typeof java !== undefined) {
162+
if (typeof java !== "undefined") {
163163
it('should accept interop buffer', function() {
164164
var javaBuffer = java.nio.ByteBuffer.allocate(8);
165165
javaBuffer.put(3, 'f'.codePointAt(0));

0 commit comments

Comments
 (0)