Changeset 265034 in webkit
- Timestamp:
- Jul 29, 2020 1:32:59 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r265000 r265034 1 2020-07-29 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Reflect object should have toStringTag with "Reflect" 4 https://bugs.webkit.org/show_bug.cgi?id=214909 5 6 Reviewed by Mark Lam. 7 8 * stress/reflect.js: 9 * test262/expectations.yaml: 10 1 11 2020-07-28 Caitlin Potter <caitp@igalia.com> 2 12 -
trunk/JSTests/stress/reflect.js
r264397 r265034 7 7 shouldBe(Reflect, Reflect); 8 8 shouldBe(Object.getPrototypeOf(Reflect), Object.getPrototypeOf({})); 9 shouldBe(Reflect.toString(), "[object Object]");9 shouldBe(Reflect.toString(), "[object Reflect]"); 10 10 shouldBe(Reflect.hasOwnProperty, Object.prototype.hasOwnProperty); -
trunk/JSTests/test262/expectations.yaml
r264894 r265034 986 986 default: 'Test262Error: Expected [length, foo, 0, Symbol()] and [Symbol(), length, foo, 0] to have the same contents. ' 987 987 strict mode: 'Test262Error: Expected [length, foo, 0, Symbol()] and [Symbol(), length, foo, 0] to have the same contents. ' 988 test/built-ins/Reflect/Symbol.toStringTag.js:989 default: 'Test262Error: obj should have an own property Symbol(Symbol.toStringTag)'990 strict mode: 'Test262Error: obj should have an own property Symbol(Symbol.toStringTag)'991 988 test/built-ins/RegExp/property-escapes/generated/Alphabetic.js: 992 989 default: 'Test262Error: `\p{Alphabetic}` should match U+001CFA (`ᳺ`)' -
trunk/Source/JavaScriptCore/ChangeLog
r265030 r265034 1 2020-07-29 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Reflect object should have toStringTag with "Reflect" 4 https://bugs.webkit.org/show_bug.cgi?id=214909 5 6 Reviewed by Mark Lam. 7 8 We call JSC_TO_STRING_TAG_WITHOUT_TRANSITION in ReflectObject to set "Reflect" @@toStringTag, which fixes one test262 failure. 9 10 * runtime/ReflectObject.cpp: 11 (JSC::ReflectObject::finishCreation): 12 1 13 2020-07-28 Yusuke Suzuki <ysuzuki@apple.com> 2 14 -
trunk/Source/JavaScriptCore/runtime/ReflectObject.cpp
r261895 r265034 51 51 STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE(ReflectObject); 52 52 53 const ClassInfo ReflectObject::s_info = { " Object", &Base::s_info, &reflectObjectTable, nullptr, CREATE_METHOD_TABLE(ReflectObject) };53 const ClassInfo ReflectObject::s_info = { "Reflect", &Base::s_info, &reflectObjectTable, nullptr, CREATE_METHOD_TABLE(ReflectObject) }; 54 54 55 55 /* Source for ReflectObject.lut.h … … 80 80 Base::finishCreation(vm); 81 81 ASSERT(inherits(vm, info())); 82 JSC_TO_STRING_TAG_WITHOUT_TRANSITION(); 82 83 } 83 84
Note: See TracChangeset
for help on using the changeset viewer.