forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define length on CoW array should properly convert to writable
https://bugs.webkit.org/show_bug.cgi?id=185927 Reviewed by Yusuke Suzuki. JSTests: * stress/cow-define-length-as-value.js: Added. (test): Source/JavaScriptCore: * runtime/JSArray.cpp: (JSC::JSArray::setLength): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@232138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
6a31919
commit 4789553
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
2018-05-23 Keith Miller <[email protected]> | ||
|
||
Define length on CoW array should properly convert to writable | ||
https://bugs.webkit.org/show_bug.cgi?id=185927 | ||
|
||
Reviewed by Yusuke Suzuki. | ||
|
||
* stress/cow-define-length-as-value.js: Added. | ||
(test): | ||
|
||
2018-05-23 Michael Saboff <[email protected]> | ||
|
||
Date.parse() doesn't properly handle input outside of ES Spec limits | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
function test(create) { | ||
// Set length to be smaller. | ||
Object.defineProperty(create(), "length", { value: 1 }); | ||
|
||
// Set length to be bigger. | ||
Object.defineProperty(create(), "length", { value: 4 }); | ||
|
||
// Set length to be the same size | ||
Object.defineProperty(create(), "length", { value: 3 }); | ||
} | ||
|
||
// Test Int32. | ||
test(() => [1, 2]); | ||
// Test double | ||
test(() => [1.123, 2.50934]); | ||
// Test contiguous via NaN | ||
test(() => [NaN, 2.50934]); | ||
// Test contiguous via string | ||
test(() => ["test", "42"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
2018-05-23 Keith Miller <[email protected]> | ||
|
||
Define length on CoW array should properly convert to writable | ||
https://bugs.webkit.org/show_bug.cgi?id=185927 | ||
|
||
Reviewed by Yusuke Suzuki. | ||
|
||
* runtime/JSArray.cpp: | ||
(JSC::JSArray::setLength): | ||
|
||
2018-05-23 Keith Miller <[email protected]> | ||
|
||
InPlaceAbstractState should filter variables at the tail from a GetLocal by their flush format | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters