Closed Bug 1891701 Opened 1 year ago Closed 1 year ago

Incorrect optimization inserts additional value to Object["getOwnPropertyNames"]

Categories

(Core :: JavaScript Engine: JIT, defect)

Firefox 127
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: m.foley20, Unassigned)

Details

Attachments

(1 file)

496 bytes, application/x-javascript
Details
Attached file minimal_bug.js

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0

Steps to reproduce:

./dist/bin/js minimal_bug.js

Actual results:

valueOf65535,assign,getPrototypeOf,setPrototypeOf,getOwnPropertyDescriptor,getOwnPropertyDescriptors,keys,values,entries,is,defineProperty,defineProperties,create,undefined,getOwnPropertySymbols,isExtensible,preventExtensions,freeze,isFrozen,seal,isSealed,fromEntries,hasOwn,groupBy,prototype,length,namesymbolgetOwnPropertyNamesnumber65535,assign,getPrototypeOf,setPrototypeOf,getOwnPropertyDescriptor,getOwnPropertyDescriptors,keys,values,entries,is,defineProperty,defineProperties,create,getOwnPropertyNames,getOwnPropertySymbols,isExtensible,preventExtensions,freeze,isFrozen,seal,isSealed,fromEntries,hasOwn,groupBy,prototype,length,name,-∞2

Expected results:

valueOfassign,getPrototypeOf,setPrototypeOf,getOwnPropertyDescriptor,getOwnPropertyDescriptors,keys,values,entries,is,defineProperty,defineProperties,create,undefined,getOwnPropertySymbols,isExtensible,preventExtensions,freeze,isFrozen,seal,isSealed,fromEntries,hasOwn,groupBy,prototype,length,namesymbolgetOwnPropertyNamesnumberassign,getPrototypeOf,setPrototypeOf,getOwnPropertyDescriptor,getOwnPropertyDescriptors,keys,values,entries,is,defineProperty,defineProperties,create,getOwnPropertyNames,getOwnPropertySymbols,isExtensible,preventExtensions,freeze,isFrozen,seal,isSealed,fromEntries,hasOwn,groupBy,prototype,length,name,-∞2

Thank you for reporting.

Unfortunately, this is not valid bug report.
The difference simply comes from the fact that opt function modifies the Math object and Object object, that becomes visible from the 3rd call.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: