Home | History | Annotate | Download | only in mjsunit

Lines Matching defs:set

171 function set(a, index, value) {
177 set(array, 0, 2.5);
180 %OptimizeFunctionOnNextCall(set);
181 set(array, 0, 2.5);
183 set(array, 1, 3.5);
533 // Test array.set in different combinations.
543 a12.set(a11, 3)
545 assertThrows(function(){ a11.set(a12) })
549 a22.set(a21, 2)
554 a31.set(a32, 4)
559 a4.set(a4)
570 a5.set([0x5050, 0x0a0a])
576 a50.set([0x50, 0x50, 0x0a, 0x0a])
577 a51.set(a5)
580 a50.set([0x50, 0x50, 0x0a, 0x0a])
581 a52.set(a5)
584 a50.set([0x50, 0x50, 0x0a, 0x0a])
585 a53.set(a5)
588 a50.set([0x50, 0x51, 0x0a, 0x0b])
589 a5.set(a51)
592 a50.set([0x50, 0x51, 0x0a, 0x0b])
593 a5.set(a52)
596 a50.set([0x50, 0x51, 0x0a, 0x0b])
597 a5.set(a53)
603 a62.set(a61)
605 a61.set(a62)
609 assertThrows(function() { a.set(0); }, TypeError);
611 a.set({}); // does not throw