Changeset 272099 in webkit
- Timestamp:
- Jan 29, 2021 8:57:02 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/stress/host-function-property-order.js (added)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/runtime/JSFunction.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r272081 r272099 1 2021-01-29 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Adjust property order of host JSFunction 4 https://bugs.webkit.org/show_bug.cgi?id=221168 5 6 Reviewed by Darin Adler. 7 8 * stress/host-function-property-order.js: Added. 9 (shouldBe): 10 1 11 2021-01-29 Yusuke Suzuki <ysuzuki@apple.com> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r272086 r272099 1 2021-01-29 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Adjust property order of host JSFunction 4 https://bugs.webkit.org/show_bug.cgi?id=221168 5 6 Reviewed by Darin Adler. 7 8 We should first define "length" before "name". 9 This will be included in upcoming test262 update[1]. 10 11 [1]: https://github.com/tc39/test262/pull/2921 12 13 * runtime/JSFunction.cpp: 14 (JSC::JSFunction::finishCreation): 15 1 16 2021-01-29 Keith Miller <keith_miller@apple.com> 2 17 -
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r271269 r272099 130 130 ASSERT(!this->inherits<JSBoundFunction>(vm)); 131 131 132 putDirect(vm, vm.propertyNames->length, jsNumber(length), PropertyAttribute::ReadOnly | PropertyAttribute::DontEnum); 132 133 if (!name.isNull()) 133 134 putDirect(vm, vm.propertyNames->name, jsString(vm, name), PropertyAttribute::ReadOnly | PropertyAttribute::DontEnum); 134 putDirect(vm, vm.propertyNames->length, jsNumber(length), PropertyAttribute::ReadOnly | PropertyAttribute::DontEnum);135 135 } 136 136
Note: See TracChangeset
for help on using the changeset viewer.