Title: [225435] trunk/JSTests
Revision
225435
Author
[email protected]
Date
2017-12-01 16:41:53 -0800 (Fri, 01 Dec 2017)

Log Message

_javascript_Core: add test for weird class static getters
https://bugs.webkit.org/show_bug.cgi?id=180281
<rdar://problem/35592139>

Reviewed by Mark Lam.

I fixed a bug for it in r224927 and didn't add a test. Do so.

* stress/class-static-get-weird.js: Added.
(c.prototype.get name):
(c):
(c.prototype.get arguments):
(c.prototype.get caller):
(c.prototype.get length):

Modified Paths

Added Paths

Diff

Modified: trunk/JSTests/ChangeLog (225434 => 225435)


--- trunk/JSTests/ChangeLog	2017-12-02 00:40:19 UTC (rev 225434)
+++ trunk/JSTests/ChangeLog	2017-12-02 00:41:53 UTC (rev 225435)
@@ -1,3 +1,20 @@
+2017-12-01  JF Bastien  <[email protected]>
+
+        _javascript_Core: add test for weird class static getters
+        https://bugs.webkit.org/show_bug.cgi?id=180281
+        <rdar://problem/35592139>
+
+        Reviewed by Mark Lam.
+
+        I fixed a bug for it in r224927 and didn't add a test. Do so.
+
+        * stress/class-static-get-weird.js: Added.
+        (c.prototype.get name):
+        (c):
+        (c.prototype.get arguments):
+        (c.prototype.get caller):
+        (c.prototype.get length):
+
 2017-12-01  Saam Barati  <[email protected]>
 
         Having a bad time needs to handle ArrayClass indexing type as well

Added: trunk/JSTests/stress/class-static-get-weird.js (0 => 225435)


--- trunk/JSTests/stress/class-static-get-weird.js	                        (rev 0)
+++ trunk/JSTests/stress/class-static-get-weird.js	2017-12-02 00:41:53 UTC (rev 225435)
@@ -0,0 +1,19 @@
+{
+    class c { static get name() { return 42; } }
+    if (c.name !== 42) throw "Fail";
+}
+
+{
+    class c { static get arguments() { return 42; } }
+    if (c.arguments !== 42) throw "Fail";
+}
+
+{
+    class c { static get caller() { return 42; } }
+    if (c.caller !== 42) throw "Fail";
+}
+
+{
+    class c { static get length() { return 42; } }
+    if (c.length !== 42) throw "Fail";
+}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to