mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #3049 - Add property-wrapper fast path to minimal LoongArch JIT
This commit is contained in:
parent
a48c1edbde
commit
1466d0a2fa
3 changed files with 174 additions and 1 deletions
|
|
@ -23,3 +23,13 @@ for (var i = 0; i < 100; i++) {
|
|||
|
||||
assertEq(overflow(2147483647, 1), 2147483648);
|
||||
assertEq(unsupported(2, 3), 5.5);
|
||||
|
||||
(function testPropertyWrappers() {
|
||||
function getX(obj) { return obj.x; }
|
||||
function setX(obj, value) { return obj.x = value; }
|
||||
|
||||
var obj = { x: 7 };
|
||||
assertEq(getX(obj), 7);
|
||||
assertEq(setX(obj, 42), 42);
|
||||
assertEq(obj.x, 42);
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue