iOS 8 beta 2 ES6 'Set' clear() broken
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jun 2014 03:20:34 +0000 (03:20 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jun 2014 03:20:34 +0000 (03:20 +0000)
commitc782def42ef2dc4ecdb625b233feae8a3bd2b1ac
tree178c46abcca415b92f9a094ed2dd595885021423
parent52b7a0471ef8ee62ba94e14bb83e58fc2243d602
iOS 8 beta 2 ES6 'Set' clear() broken
https://bugs.webkit.org/show_bug.cgi?id=134346

Reviewed by Oliver Hunt.

Source/JavaScriptCore:
The object map was not cleared :(.

Kudos to Ashley Gullen for tracking this and making a regression test.
Credit to Oliver for finding the missing code.

* runtime/MapData.h:
(JSC::MapData::clear):

LayoutTests:
* js/script-tests/set-clear.js: Added.
* js/set-clear-expected.txt: Added.
* js/set-clear.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/js/map-clear-expected.txt [new file with mode: 0644]
LayoutTests/js/map-clear.html [new file with mode: 0644]
LayoutTests/js/script-tests/map-clear.js [new file with mode: 0644]
LayoutTests/js/script-tests/set-clear.js [new file with mode: 0644]
LayoutTests/js/set-clear-expected.txt [new file with mode: 0644]
LayoutTests/js/set-clear.html [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/MapData.h