Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Commit 78b2298

Browse files
committed
lint fixes
1 parent 3a45951 commit 78b2298

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/__tests__/runtime.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('runtime', () => {
4444
'Float32Array',
4545
'Float64Array',
4646
'Object',
47-
'constructor'
47+
'constructor',
4848
].sort()
4949

5050
const dummyFactory = Symbol('dummy factory')
@@ -55,13 +55,13 @@ describe('runtime', () => {
5555
test('instanceof from different realm works', () => {
5656
const dummyFactory = Symbol('dummy factory')
5757
const bindings = {
58-
instanceOfObject: (obj) => { return obj instanceof Object},
59-
isArrayBufferView: (ab) => { return ArrayBuffer.isView(ab)},
58+
instanceOfObject: (obj) => { return obj instanceof Object },
59+
isArrayBufferView: (ab) => { return ArrayBuffer.isView(ab) },
6060
}
6161
const context = new runtime.Context(() => {}, dummyFactory, bindings)
62-
63-
const objTest = vm.runInNewContext("instanceOfObject(new Object())", context)
64-
const arrayBufferViewTest = vm.runInNewContext("isArrayBufferView(new Uint16Array())", context)
62+
63+
const objTest = vm.runInNewContext('instanceOfObject(new Object())', context)
64+
const arrayBufferViewTest = vm.runInNewContext('isArrayBufferView(new Uint16Array())', context)
6565

6666
expect(objTest).toEqual(true)
6767
expect(arrayBufferViewTest).toEqual(true)

lib/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Context {
3131
this.atob = atob
3232
this.btoa = btoa
3333

34-
// These are necessary to use "instanceof" within a vm
34+
// These are necessary to use "instanceof" within a vm
3535
this.ArrayBuffer = ArrayBuffer
3636
this.Int8Array = Int8Array
3737
this.Uint8Array = Uint8Array

0 commit comments

Comments
 (0)