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

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hankjacobs committed May 12, 2019
1 parent 3a45951 commit 78b2298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/__tests__/runtime.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('runtime', () => {
'Float32Array',
'Float64Array',
'Object',
'constructor'
'constructor',
].sort()

const dummyFactory = Symbol('dummy factory')
Expand All @@ -55,13 +55,13 @@ describe('runtime', () => {
test('instanceof from different realm works', () => {
const dummyFactory = Symbol('dummy factory')
const bindings = {
instanceOfObject: (obj) => { return obj instanceof Object},
isArrayBufferView: (ab) => { return ArrayBuffer.isView(ab)},
instanceOfObject: (obj) => { return obj instanceof Object },
isArrayBufferView: (ab) => { return ArrayBuffer.isView(ab) },
}
const context = new runtime.Context(() => {}, dummyFactory, bindings)
const objTest = vm.runInNewContext("instanceOfObject(new Object())", context)
const arrayBufferViewTest = vm.runInNewContext("isArrayBufferView(new Uint16Array())", context)

const objTest = vm.runInNewContext('instanceOfObject(new Object())', context)
const arrayBufferViewTest = vm.runInNewContext('isArrayBufferView(new Uint16Array())', context)

expect(objTest).toEqual(true)
expect(arrayBufferViewTest).toEqual(true)
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Context {
this.atob = atob
this.btoa = btoa

// These are necessary to use "instanceof" within a vm
// These are necessary to use "instanceof" within a vm
this.ArrayBuffer = ArrayBuffer
this.Int8Array = Int8Array
this.Uint8Array = Uint8Array
Expand Down

0 comments on commit 78b2298

Please sign in to comment.