@@ -961,7 +961,8 @@ base.ndzerosLike,"var x = base.ndzeros( 'float64', [ 2, 2 ], 'row-major' )\nvar
961
961
base.negafibonacci,"var y = base.negafibonacci( 0 )\ny = base.negafibonacci( -1 )\ny = base.negafibonacci( -2 )\ny = base.negafibonacci( -3 )\ny = base.negafibonacci( -4 )\ny = base.negafibonacci( -79 )\ny = base.negafibonacci( -80 )\ny = base.negafibonacci( NaN )\n"
962
962
base.negalucas,"var y = base.negalucas( 0 )\ny = base.negalucas( -1 )\ny = base.negalucas( -2 )\ny = base.negalucas( -3 )\ny = base.negalucas( -4 )\ny = base.negalucas( -77 )\ny = base.negalucas( -78 )\ny = base.negalucas( NaN )\n"
963
963
base.nonfibonacci,"var v = base.nonfibonacci( 1 )\nv = base.nonfibonacci( 2 )\nv = base.nonfibonacci( 3 )\nv = base.nonfibonacci( NaN )\n"
964
- base.normalize,"var out = base.normalize( 3.14e-319 )\nvar y = out[ 0 ];\nvar exponent = out[ 1 ];\nvar bool = ( y*base.pow(2.0, exponent) === 3.14e-319 )\nout = base.normalize( 0.0 )\nout = base.normalize( PINF )\nout = base.normalize( NINF )\nout = base.normalize( NaN )\nout = new Float64Array( 2 );\nvar v = base.normalize( out, 3.14e-319 )\nbool = ( v === out )\n"
964
+ base.normalize,"var out = base.normalize( 3.14e-319 )\nvar y = out[ 0 ];\nvar exponent = out[ 1 ];\nvar bool = ( y*base.pow(2.0, exponent) === 3.14e-319 )\nout = base.normalize( 0.0 )\nout = base.normalize( PINF )\nout = base.normalize( NINF )\nout = base.normalize( NaN )\n"
965
+ base.normalize.assign,"var out = new Float64Array( 2 )\nvar v = base.normalize.assign( 3.14e-319, out, 1, 0 )\nbool = ( v === out )\n"
965
966
base.normalizef,"var out = base.normalizef( base.float64ToFloat32( 1.401e-45 ) )\nvar y = out[ 0 ];\nvar exp = out[ 1 ];\nvar bool = ( y*base.pow(2,exp) === base.float64ToFloat32(1.401e-45) )\nout = base.normalizef( FLOAT32_PINF )\nout = base.normalizef( FLOAT32_NINF )\nout = base.normalizef( NaN )\nout = new Float32Array( 2 );\nvar v = base.normalizef( out, base.float64ToFloat32( 1.401e-45 ) )\nbool = ( v === out )\n"
966
967
base.normhermitepoly,"var y = base.normhermitepoly( 1, 0.5 )\ny = base.normhermitepoly( -1, 0.5 )\ny = base.normhermitepoly( 0, 0.5 )\ny = base.normhermitepoly( 2, 0.5 )\n"
967
968
base.normhermitepoly.factory,"var polyval = base.normhermitepoly.factory( 2 );\nvar v = polyval( 0.5 )\n"
@@ -2305,6 +2306,8 @@ bifurcateOwn,"function predicate( v ) { return v[ 0 ] === 'b'; };\nvar obj = { '
2305
2306
BigInt,"var v = ( BigInt ) ? BigInt( '1' ) : null\n"
2306
2307
binomialTest,"var out = binomialTest( 682, 925 )\nout = binomialTest( [ 682, 925 - 682 ] )\nout = binomialTest( 21, 40, {\n 'p': 0.4,\n 'alternative': 'greater'\n })\n"
2307
2308
Boolean,"var b = new Boolean( null )\nb = Boolean( null )\nb = Boolean( [] )\n"
2309
+ Boolean.prototype.toString,"var b = new Boolean( true )\nb.toString()\n"
2310
+ Boolean.prototype.valueOf,"var b = new Boolean( true )\nb.valueOf()\n"
2308
2311
Buffer,"var b = new Buffer( 4 )\nvar b1 = new Buffer( [ 1, 2, 3, 4 ] );\nvar b2 = new Buffer( b1 )\nvar b = new Buffer( [ 1, 2, 3, 4 ] )\nvar b = new Buffer( 'beep boop' )\n"
2309
2312
buffer2json,"var buf = new allocUnsafe( 2 );\nbuf[ 0 ] = 1;\nbuf[ 1 ] = 2;\nvar json = buffer2json( buf )\n"
2310
2313
BYTE_ORDER,"BYTE_ORDER\n"
@@ -2606,6 +2609,13 @@ FOURTH_ROOT_EPS,"FOURTH_ROOT_EPS\n"
2606
2609
FRB_SF_WAGE_RIGIDITY,"var data = FRB_SF_WAGE_RIGIDITY()\n"
2607
2610
fromCodePoint,"var out = fromCodePoint( 9731 )\nout = fromCodePoint( [ 9731 ] )\nout = fromCodePoint( 97, 98, 99 )\nout = fromCodePoint( [ 97, 98, 99 ] )\n"
2608
2611
Function,"var f = new Function( 'x', 'y', 'return x + y' );\nf( 1, 2 )\n"
2612
+ Function.prototype.apply,"var f = new Function( 'x', 'y', 'return x + y' );\nf.apply( null, [ 1, 2 ] )\n"
2613
+ Function.prototype.call,"var f = new Function( 'x', 'y', 'return x + y' );\nf.call( null, 1, 2 )\n"
2614
+ Function.prototype.bind,"var f = new Function( 'x', 'y', 'return x + y' );\nvar g = f.bind( null, 1 );\ng( 2 )\n"
2615
+ Function.prototype.toString,"var f = new Function( 'x', 'y', 'return x + y' );\nf.toString()\n"
2616
+ Function.prototype.length,"var f = new Function( 'x', 'y', 'return x + y' );\nf.length\n"
2617
+ Function.prototype.name,"var f = new Function( 'x', 'y', 'return x + y' );\nf.name\nvar f = new Function( 'x', 'y', 'return x + y' );\nf.name = 'add';\nf.name\n"
2618
+ Function.prototype.prototype,"var f = new Function( 'x', 'y', 'return x + y' );\nf.prototype\n"
2609
2619
function2string,"function2string( base.erf )\n"
2610
2620
functionName,"var v = functionName( String )\nv = functionName( function foo(){} )\nv = functionName( function(){} )\n"
2611
2621
functionSequence,"function a( x ) { return 2 * x; };\nfunction b( x ) { return x + 3; };\nfunction c( x ) { return x / 5; };\nvar f = functionSequence( a, b, c );\nvar z = f( 6 )\n"
@@ -3000,6 +3010,7 @@ isDataProperty,"var obj = { 'boop': true };\nvar desc = {};\ndesc.configurable =
3000
3010
isDataPropertyIn,"var obj = { 'boop': true };\nvar desc = {};\ndesc.configurable = false;\ndesc.enumerable = false;\ndesc.get = function getter() { return 'beep'; };\ndefineProperty( obj, 'beep', desc );\nvar bool = isDataPropertyIn( obj, 'boop' )\nbool = isDataPropertyIn( obj, 'beep' )\n"
3001
3011
isDataView,"var buf = new ArrayBuffer( 10 );\nvar bool = isDataView( new DataView( buf ) )\nbool = isDataView( [] )\n"
3002
3012
isDateObject,"var bool = isDateObject( new Date() )\nbool = isDateObject( '2017-01-01' )\n"
3013
+ isDateObjectArray,"var bool = isDateObjectArray( [ new Date(), new Date() ] )\nbool = isDateObjectArray( [ {}, {} ] )\nbool = isDateObjectArray( [ new Date(), '2011-01-01' ] )\nbool = isDateObjectArray( [] )\n"
3003
3014
isDigitString,"var bool = isDigitString( '0123456789' )\nbool = isDigitString( 'abcdef' )\nbool = isDigitString( '0xff' )\nbool = isDigitString( '' )\n"
3004
3015
isEmailAddress,"var bool = isEmailAddress( 'beep@boop.com' )\nbool = isEmailAddress( 'beep' )\nbool = isEmailAddress( null )\n"
3005
3016
isEmptyArray,"var bool = isEmptyArray( [] )\nbool = isEmptyArray( [ 1, 2, 3 ] )\nbool = isEmptyArray( {} )\n"
@@ -3624,6 +3635,34 @@ NUM_CPUS,"NUM_CPUS\n"
3624
3635
Number,"var v = new Number( 5 )\n"
3625
3636
numGraphemeClusters,"var out = numGraphemeClusters( 'beep' )\nout = numGraphemeClusters( '🌷' )\n"
3626
3637
Object,"var o = new Object( null )\no = new Object( 5.0 )\no = new Object( 'beep' )\n"
3638
+ Object.assign,"var o = Object.assign( {}, { 'a': 1 }, { 'b': 2 } )\n"
3639
+ Object.create,"var o = Object.create( {}, { 'a': { 'value': 1 } } )\n"
3640
+ Object.defineProperties,"var o = Object.defineProperties( {}, { 'a': { 'value': 1 } } )\n"
3641
+ Object.defineProperty,"var o = Object.defineProperty( {}, 'a', {\n"
3642
+ Object.entries,"var o = Object.entries( { 'a': 1, 'b': 2 } )\n"
3643
+ Object.freeze,"var o = Object.freeze( { 'a': 1 } )\n"
3644
+ Object.getOwnPropertyDescriptor,"var o = Object.getOwnPropertyDescriptor( { 'a': 1 }, 'a' )\n"
3645
+ Object.getOwnPropertyDescriptors,"var o = Object.getOwnPropertyDescriptors( { 'a': 1, 'b': 2 } )\n"
3646
+ Object.getOwnPropertyNames,"var o = Object.getOwnPropertyNames( { 'a': 1, 'b': 2 } )\n"
3647
+ Object.getOwnPropertySymbols,"var o = Object.getOwnPropertySymbols( { 'a': 1, 'b': 2 } )\n"
3648
+ Object.getPrototypeOf,"var o = Object.getPrototypeOf( { 'a': 1, 'b': 2 } )\n"
3649
+ Object.hasOwn,"var o = Object.hasOwn( { 'a': 1, 'b': 2 }, 'a' )\n"
3650
+ Object.is,"var o = Object.is( 1, 1 )\nvar o = Object.is( 1, '1' )\n"
3651
+ Object.isExtensible,"var o = Object.isExtensible( { 'a': 1 } )\n"
3652
+ Object.isFrozen,"var o = Object.isFrozen( { 'a': 1 } )\nvar o = Object.isFrozen( Object.freeze( { 'a': 1 } ) )\n"
3653
+ Object.isSealed,"var o = Object.isSealed( { 'a': 1 } )\nvar o = Object.isSealed( Object.seal( { 'a': 1 } ) )\n"
3654
+ Object.keys,"var o = Object.keys( { 'a': 1, 'b': 2 } )\n"
3655
+ Object.preventExtensions,"var o = Object.preventExtensions( { 'a': 1 } )\no.b = 2;\no\n"
3656
+ Object.seal,"var o = Object.seal( { 'a': 1 } )\no.b = 2;\no\ndelete o.a;\no\n"
3657
+ Object.setPrototypeOf,"var o = Object.setPrototypeOf( { 'a': 1 }, { 'b': 2 } )\no.b\n"
3658
+ Object.values,"var o = Object.values( { 'a': 1, 'b': 2 } )\n"
3659
+ Object.prototype.toLocaleString,"var o = Object.prototype.toLocaleString.call( { 'a': 1, 'b': 2 } )\n"
3660
+ Object.prototype.toString,"var o = Object.prototype.toString.call( { 'a': 1, 'b': 2 } )\n"
3661
+ Object.prototype.valueOf,"var o = Object.prototype.valueOf.call( { 'a': 1, 'b': 2 } )\n"
3662
+ Object.prototype.hasOwnProperty,"var o = Object.prototype.hasOwnProperty.call( { 'a': 1, 'b': 2 }, 'a' )\n"
3663
+ Object.prototype.isPrototypeOf,"var p = { 'a': 1 };\nvar o = { '__proto__': p };\nvar b = o.isPrototypeOf( p );\n"
3664
+ Object.prototype.propertyIsEnumerable,"var o = { 'a': 1, 'b': 2 };\nvar bool = Object.prototype.propertyIsEnumerable.call( o, 'a' )\n"
3665
+ Object.prototype.constructor,"var o = new Object( null );\nvar ctr = o.constructor;\n"
3627
3666
objectEntries,"var obj = { 'beep': 'boop', 'foo': 'bar' };\nvar entries = objectEntries( obj )\n"
3628
3667
objectEntriesIn,"function Foo() { this.beep = 'boop'; return this; };\nFoo.prototype.foo = 'bar';\nvar obj = new Foo();\nvar entries = objectEntriesIn( obj )\n"
3629
3668
objectFromEntries,"var entries = [ [ 'beep', 'boop' ], [ 'foo', 'bar' ] ];\nvar obj = objectFromEntries( entries )\n"
0 commit comments