@@ -83,7 +83,7 @@ function lazyLoadComparison() {
8383// AssertionError's when particular conditions are not met. The 
8484// assert module must conform to the following interface. 
8585
86- const   assert   =   module . exports  =  ok ; 
86+ module . exports  =  assert ; 
8787
8888const  NO_EXCEPTION_SENTINEL  =  { } ; 
8989
@@ -186,8 +186,8 @@ assert.AssertionError = AssertionError;
186186 * @param  {...any } args 
187187 * @returns  {void } 
188188 */ 
189- function  ok ( ...args )  { 
190-   innerOk ( ok ,  args . length ,  ...args ) ; 
189+ function  assert ( ...args )  { 
190+   innerOk ( assert ,  args . length ,  ...args ) ; 
191191} 
192192
193193/** 
@@ -890,10 +890,8 @@ function strict(...args) {
890890  innerOk ( strict ,  args . length ,  ...args ) ; 
891891} 
892892
893- // TODO(aduh95): take `ok` from `Assert.prototype` instead of a self-ref in a next major. 
894- assert . ok  =  assert ; 
895893ArrayPrototypeForEach ( [ 
896-   'fail' ,  'equal' ,  'notEqual' ,  'deepEqual' ,  'notDeepEqual' , 
894+   'ok'  ,   ' fail',  'equal' ,  'notEqual' ,  'deepEqual' ,  'notDeepEqual' , 
897895  'deepStrictEqual' ,  'notDeepStrictEqual' ,  'strictEqual' , 
898896  'notStrictEqual' ,  'partialDeepStrictEqual' ,  'match' ,  'doesNotMatch' , 
899897  'throws' ,  'rejects' ,  'doesNotThrow' ,  'doesNotReject' ,  'ifError' , 
0 commit comments