0f962b40329e6057fb4e5474b16060364fa214a1
[WebKit-https.git] / JSTests / ChangeLog
1 2016-08-19  Benjamin Poulain  <bpoulain@apple.com>
2
3         [JSC] ArithSqrt should work with any argument type
4         https://bugs.webkit.org/show_bug.cgi?id=160954
5
6         Reviewed by Saam Barati.
7
8         * stress/arith-sqrt-on-various-types.js: Added.
9         (let.validInputTypedTestCases.validInputTestCases.map):
10         (isIdentical):
11         (opaqueAllTypesSqrt):
12         (testAllTypesCall):
13         (testSingleTypeCall):
14         (opaqueSqrtForSideEffects):
15         (testSideEffect.let.testObject.valueOf):
16         (testSideEffect):
17         (opaqueSqrtForCSE):
18         (testCSE.let.testObject.valueOf):
19         (testCSE):
20         (testException.opaqueSqrtWithException):
21         (testException):
22
23 2016-08-19  Joseph Pecoraro  <pecoraro@apple.com>
24
25         Make custom Error properties (line, column, sourceURL) configurable and writable
26         https://bugs.webkit.org/show_bug.cgi?id=160984
27         <rdar://problem/27905979>
28
29         Reviewed by Saam Barati.
30
31         * stress/native-error-properties.js: Added.
32         (assert):
33         (shouldNotThrow):
34
35         (checkEmptyErrorPropertiesDescriptors):
36         (checkNonEmptyErrorPropertiesDescriptors):
37         The spec only describes the "message" property, so
38         ensure it has the right descriptor attributes.
39
40         (checkErrorPropertiesWritable):
41         Ensure common error property names are writable.
42         In strict mode this would have thrown an exception
43         if they were readonly.
44
45 2016-08-18  Mark Lam  <mark.lam@apple.com>
46
47         ScopedArguments is using the wrong owner object for a write barrier.
48         https://bugs.webkit.org/show_bug.cgi?id=160976
49         <rdar://problem/27328506>
50
51         Reviewed by Keith Miller.
52
53         * stress/scoped-arguments-write-barrier-should-be-on-scope-object.js: Added.
54
55 2016-08-17  JF Bastien  <jfbastien@apple.com>
56
57         We allow assignments to const variables when in a for-in/for-of loop
58         https://bugs.webkit.org/show_bug.cgi?id=156673
59
60         Reviewed by Filip Pizlo.
61
62         * stress/for-in-of-const.js: Added.
63         (expect_nothrow):
64         (expect_throw):
65         (capture):
66
67 2016-08-17  Mark Lam  <mark.lam@apple.com>
68
69         Remove an invalid assertion in the DFG backend's GetById emitter.
70         https://bugs.webkit.org/show_bug.cgi?id=160925
71         <rdar://problem/27248961>
72
73         Reviewed by Filip Pizlo.
74
75         * stress/dfg-get-by-id-should-not-assert-non-null-prediction.js: Added.
76
77 2016-08-16  Ryan Haddad  <ryanhaddad@apple.com>
78
79         Unreviewed, rolling out r204464.
80
81         This is no longer needed after r204495.
82
83         Reverted changeset:
84
85         "Skip failing test mozilla/ecma/LexicalConventions/7.7.3.js"
86         https://bugs.webkit.org/show_bug.cgi?id=160662
87         http://trac.webkit.org/changeset/204464
88
89 2016-08-15  Ryan Haddad  <ryanhaddad@apple.com>
90
91         Skip failing test mozilla/ecma/LexicalConventions/7.7.3.js
92         https://bugs.webkit.org/show_bug.cgi?id=160662
93
94         Unreviewed test gardening.
95
96         * mozilla/ecma/LexicalConventions/7.7.3.js:
97
98 2016-08-14  Skachkov Oleksandr  <gskachkov@gmail.com>
99
100         [2016] Set correct status for test262 after implementation of Object.values&Object.entries
101         https://bugs.webkit.org/show_bug.cgi?id=160844
102
103         Reviewed by Saam Barati.
104
105         Patch contains fix statuses of specs in the test262 test collection after implementation of 
106         Object.values and Object.entries functions. Also patch contains small fixes in tests of the 
107         tests for Object.values/entries functions.
108
109         * stress/object-entries.js:
110         (Object.getOwnPropertyDescriptor):
111         * stress/object-values.js:
112         (Object.getOwnPropertyDescriptor):
113         * test262.yaml:
114
115 2016-08-12  Saam Barati  <sbarati@apple.com>
116
117         Inline store loop for CopyRest in DFG and FTL for certain array modes
118         https://bugs.webkit.org/show_bug.cgi?id=159612
119
120         Reviewed by Filip Pizlo.
121
122         * stress/rest-parameter-having-a-bad-time.js: Added.
123         * stress/rest-parameter-many-arguments.js: Added.
124         * stress/rest-parameter-various-types.js: Added.
125
126 2016-08-12  Skachkov Oleksandr  <gskachkov@gmail.com>
127
128         [ES2016] Implement Object.entries
129         https://bugs.webkit.org/show_bug.cgi?id=160412
130
131         Reviewed by Saam Barati.
132
133         Patch contains tests for Object.entries function and 
134         fix of wrong tests for Object.values function.
135
136         * stress/object-entries.js: 
137         (compare):
138         (string_appeared_here.forEach):
139         (const.getInvokedFunctions.):
140         (const.getInvokedFunctions):
141         (Array.prototype.push):
142         * stress/object-values.js:
143
144 2016-08-11  Mark Lam  <mark.lam@apple.com>
145
146         OverridesHasInstance should not branch across register allocations.
147         https://bugs.webkit.org/show_bug.cgi?id=160792
148         <rdar://problem/27361778>
149
150         Reviewed by Benjamin Poulain.
151
152         * stress/OverrideHasInstance-should-not-branch-across-register-allocations.js: Added.
153
154 2016-08-11  Mark Lam  <mark.lam@apple.com>
155
156         The jsc shell's Element host constructor should throw if it fails to construct an object.
157         https://bugs.webkit.org/show_bug.cgi?id=160773
158         <rdar://problem/27328608>
159
160         Reviewed by Saam Barati.
161
162         * stress/generational-opaque-roots.js:
163
164 2016-08-11  Mark Lam  <mark.lam@apple.com>
165
166         Disallow synchronous sweeping for eden GCs.
167         https://bugs.webkit.org/show_bug.cgi?id=160716
168
169         Reviewed by Geoffrey Garen.
170
171         * stress/eden-gc-with-retired-blocks.js: Added.
172         - This test is just in case we add back support for eden GCs with synchronous
173           sweeping in the future.
174
175 2016-08-10  Michael Saboff  <msaboff@apple.com>
176
177         Baseline GetByVal and PutByVal for cache ID stubs need to handle exceptions
178         https://bugs.webkit.org/show_bug.cgi?id=160749
179
180         Reviewed by Filip Pizlo.
181
182         New test that causes baseline GetByValWithCachedId and PutByValWithCachedId
183         stubs to be generated and then throws exceptions for those stub to handle
184         to verify that they are properly handled.
185
186         * stress/regress-160749.js: Added.
187         (testCachedGetByVal.):
188         (testCachedGetByVal.get for):
189         (testCachedGetByVal):
190         (testCachedPutByVal.):
191         (testCachedPutByVal.set for):
192         (testCachedPutByVal):
193
194 2016-08-10  Mark Lam  <mark.lam@apple.com>
195
196         DFG's flushForTerminal() needs to add PhantomLocals for bytecode live locals.
197         https://bugs.webkit.org/show_bug.cgi?id=160755
198         <rdar://problem/27488507>
199
200         Reviewed by Filip Pizlo.
201
202         * stress/need-bytecode-liveness-for-unreachable-blocks-at-dfg-time.js: Added.
203
204 2016-08-09  Skachkov Oleksandr  <gskachkov@gmail.com>
205
206         [ES2016] Implement Object.values
207         https://bugs.webkit.org/show_bug.cgi?id=160410
208
209         Reviewed by Saam Barati, Yusuke Suzuki.
210
211         * stress/object-values.js: Added.
212         (compare):
213         (string_appeared_here.forEach):
214         (const.getInvokedFunctions.):
215         (const.getInvokedFunctions):
216         (Array.prototype.push):
217
218 2016-08-09  Saam Barati  <sbarati@apple.com>
219
220         JSBoundFunction should lazily generate its name string
221         https://bugs.webkit.org/show_bug.cgi?id=160678
222         <rdar://problem/27043194>
223
224         Reviewed by Mark Lam.
225
226         * stress/bound-function-lazy-name-generation.js: Added.
227         (assert):
228         (test.let.f):
229         (test.f):
230         (test):
231
232 2016-08-08  Mark Lam  <mark.lam@apple.com>
233
234         ASSERTION FAILED: hasInlineStorage() in JSFinalObject::visitChildren().
235         https://bugs.webkit.org/show_bug.cgi?id=160666
236
237         Reviewed by Keith Miller.
238
239         * stress/object-constructor-should-be-new-target-aware.js:
240
241 2016-08-07  Yusuke Suzuki  <utatane.tea@gmail.com>
242
243         [ES6] Module namespace object should not allow unset IC
244         https://bugs.webkit.org/show_bug.cgi?id=160553
245
246         Reviewed by Saam Barati.
247
248         * modules/namespace-object-get-property.js: Added.
249         (import.as.ns.from.string_appeared_here.shouldThrow):
250         * modules/namespace-object-has-property.js: Added.
251         * modules/namespace-object-inline-caching.js: Added.
252         (import.as.A.from.string_appeared_here.import.as.B.from.string_appeared_here.lookup):
253         (shouldBe.lookup.lookup):
254         (shouldBe.lookup):
255         * modules/namespace-object-inline-caching/a.js: Added.
256         * modules/namespace-object-inline-caching/b.js: Added.
257         * modules/namespace-object-try-get.js: Added.
258         (import.as.ns.from.string_appeared_here.tryGetByIdText):
259         (tryGetByIdTextStrict):
260         * modules/namespace-object-typed-array-fast-path.js: Added.
261         * test262.yaml:
262
263 2016-08-05  Saam Barati  <sbarati@apple.com>
264
265         various math operations don't properly check for an exception after calling toNumber() on the lhs
266         https://bugs.webkit.org/show_bug.cgi?id=160154
267
268         Reviewed by Mark Lam.
269
270         * stress/to-number-throws-correct-exception.js: Added.
271         (test.let.test.runTest.):
272         (test.let.test.runTest.get f):
273         (test.let.test.runTest):
274         (test.let.test):
275         (test):
276         (test2.runTest.):
277         (test2.runTest.get f):
278         (test2.runTest):
279         (test2):
280
281 2016-08-05  Saam Barati  <sbarati@apple.com>
282
283         Assertion failure when accessing TDZ variable in catch through eval
284         https://bugs.webkit.org/show_bug.cgi?id=160554
285
286         Reviewed by Mark Lam and Keith Miller.
287
288         * stress/catch-variables-under-tdz.js: Added.
289         (test):
290
291 2016-08-04  Yusuke Suzuki  <utatane.tea@gmail.com>
292
293         [ES6] JSModuleNamespaceObject's Symbol.iterator function should have name
294         https://bugs.webkit.org/show_bug.cgi?id=160549
295
296         Reviewed by Saam Barati.
297
298         * modules/namespace-object-symbol-iterator-name.js: Added.
299         * test262.yaml:
300
301 2016-08-04  Keith Miller  <keith_miller@apple.com>
302
303         ASSERTION FAILED: !hasInstanceValueNode->isCellConstant() || defaultHasInstanceFunction == hasInstanceValueNode->asCell()
304         https://bugs.webkit.org/show_bug.cgi?id=160562
305
306         Reviewed by Mark Lam.
307
308         * stress/instanceof-late-constant-folding.js: Added.
309         (Constructor):
310         (value):
311         (body):
312
313 2016-08-04  Caitlin Potter  <caitp@igalia.com>
314
315         [JSC] fix generator-syntax.js JSTest again after yield grammar fix
316         https://bugs.webkit.org/show_bug.cgi?id=160550
317
318         Reviewed by Yusuke Suzuki.
319
320         * stress/generator-syntax.js:
321         (testYieldBindingIdentifier):
322
323 2016-08-03  Caitlin Potter  <caitp@igalia.com>
324
325         Clarify SyntaxErrors around yield and unskip tests
326         https://bugs.webkit.org/show_bug.cgi?id=158460
327
328         Reviewed by Saam Barati.
329
330         Fix and unskip tests which erroneously asserted that `yield` is not a
331         valid BindingIdentifier, and improve error message for YieldExpressions
332         occuring in Arrow formal parameters.
333
334         * stress/generator-syntax.js:
335         * stress/yield-out-of-generator.js:
336
337 2016-08-03  Filip Pizlo  <fpizlo@apple.com>
338
339         REGRESSION(r203368): broke some test262 tests
340         https://bugs.webkit.org/show_bug.cgi?id=160479
341
342         Reviewed by Mark Lam.
343         
344         Added a stress test for this case, since we don't always run test262.
345
346         * stress/freeze-setter.js: Added.
347         (let.o.set foo):
348
349 2016-08-03  Saam Barati  <sbarati@apple.com>
350
351         Implement nested rest destructuring w.r.t the ES7 spec
352         https://bugs.webkit.org/show_bug.cgi?id=160423
353
354         Reviewed by Filip Pizlo.
355
356         * stress/destructuring-rest-element.js: Added.
357         (assert):
358         (test):
359         (arr):
360         (eq):
361         (gen):
362         (fakeGen.return.Symbol.iterator):
363         (fakeGen):
364         * stress/rest-elements.js:
365         (testSyntaxError.String.raw):
366         * stress/rest-parameter-is-destructuring.js: Added.
367         (assert):
368         (test):
369         (foo):
370         (bar):
371         * test262.yaml:
372
373 2016-08-02  Saam Barati  <sbarati@apple.com>
374
375         Rename Changelog to ChangeLog
376
377         Rubber stamped by Keith Miller.
378
379         * Changelog: Removed.
380
381 2016-08-02  Saam Barati  <sbarati@apple.com>
382
383         update a class extending null w.r.t the ES7 spec
384         https://bugs.webkit.org/show_bug.cgi?id=160417
385
386         Reviewed by Keith Miller.
387
388         * Changelog:
389         * stress/class-derived-from-null.js: Added.
390         (assert):
391         (test):
392         (test1.C):
393         (test1):
394         (jsNull):
395         (test2.C):
396         (test2):
397         (test3.C):
398         (test3.D):
399         (test3.E):
400         (test3):
401         (test4.E):
402         (test4):
403         (test5.E):
404         (test5):
405         (test6.Base):
406         (test6.D):
407         (test6.E):
408         (test6.F):
409         (test6.G):
410         (test6):
411         * test262.yaml:
412
413 2016-08-01  Filip Pizlo  <fpizlo@apple.com>
414
415         Rationalize varargs stack overflow checks
416         https://bugs.webkit.org/show_bug.cgi?id=160425
417
418         Reviewed by Michael Saboff.
419
420         * stress/arity-check-ftl-throw-more-args.js: Added.
421         (catch):
422
423 2016-08-01  Keith Miller  <keith_miller@apple.com>
424
425         We should not keep the JavaScript tests inside the Source/JavaScriptCore/ directory.
426         https://bugs.webkit.org/show_bug.cgi?id=160372
427
428         Rubber stamped by Geoffrey Garen.
429
430         This patch moves all the JavaScript tests from Source/JavaScriptCore/tests to
431         a new top level directory, JSTests. Having the tests in the Source directory
432         was both confusing an inconvenient for people that just want to checkout the
433         source code of WebKit. Since there is no other obvious place to put all the
434         JavaScript tests a new top level directory seemed the most sensible.
435
436         * tests/: Deleted.