From 70dc33467e979563c3bc643137c0a639e37b6521 Mon Sep 17 00:00:00 2001 From: test262-automation Date: Mon, 27 Aug 2018 18:17:41 +0000 Subject: [PATCH 1/2] [javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha 12df785646 on Mon Aug 27 2018 18:14:52 GMT+0000 (Coordinated Universal Time) --- .../reverse-with-immutable-butterfly.js | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 implementation-contributed/javascriptcore/stress/reverse-with-immutable-butterfly.js diff --git a/implementation-contributed/javascriptcore/stress/reverse-with-immutable-butterfly.js b/implementation-contributed/javascriptcore/stress/reverse-with-immutable-butterfly.js new file mode 100644 index 0000000000..8f5d428cee --- /dev/null +++ b/implementation-contributed/javascriptcore/stress/reverse-with-immutable-butterfly.js @@ -0,0 +1,28 @@ +function shouldBe(actual, expected) { + if (actual !== expected) + throw new Error('bad value: ' + actual); +} + +function reverseInt() +{ + var array = [0, 1, 2, 3]; + return array.reverse(); +} + +function reverseDouble() +{ + var array = [0.0, 1.1, 2.2, 3.3]; + return array.reverse(); +} + +function reverseContiguous() +{ + var array = [0.0, 1.1, 2.2, 'hello']; + return array.reverse(); +} + +for (var i = 0; i < 1e4; ++i) { + shouldBe(JSON.stringify(reverseInt()), `[3,2,1,0]`); + shouldBe(JSON.stringify(reverseDouble()), `[3.3,2.2,1.1,0]`); + shouldBe(JSON.stringify(reverseContiguous()), `["hello",2.2,1.1,0]`); +} From efb2bcae8d2444a041a8ae00df52991fa22674f9 Mon Sep 17 00:00:00 2001 From: test262-automation Date: Mon, 27 Aug 2018 18:17:44 +0000 Subject: [PATCH 2/2] [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files. sourceRevisionAtLastExport: 12df785646 targetRevisionAtLastExport: 5032c509e --- implementation-contributed/curation_logs/javascriptcore.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implementation-contributed/curation_logs/javascriptcore.json b/implementation-contributed/curation_logs/javascriptcore.json index ecafe83d46..7e1e764236 100644 --- a/implementation-contributed/curation_logs/javascriptcore.json +++ b/implementation-contributed/curation_logs/javascriptcore.json @@ -1,6 +1,6 @@ { - "sourceRevisionAtLastExport": "12df785646", - "targetRevisionAtLastExport": "5032c509e", + "sourceRevisionAtLastExport": "8a25978f29", + "targetRevisionAtLastExport": "70dc33467", "curatedFiles": { "/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET", "/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.js": "DELETED_IN_TARGET",