This repository was archived by the owner on Jun 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments