Skip to content

Commit d4f2cff

Browse files
authored
Merge pull request #2157 from svaarala/v2.4.0-release-prep
Preparations for 2.4.0 release
2 parents 4ed391d + bcb3743 commit d4f2cff

21 files changed

+64
-46
lines changed

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ bugs, provided ideas, etc; roughly in order of appearance):
104104
* Wilhelm Wanecek (https://github.com/wanecek)
105105
* Andrew Janke (https://github.com/apjanke)
106106
* Unamer (https://github.com/unamer)
107-
* Karl Dahlke
107+
* Karl Dahlke (eklhad@gmail.com)
108108

109109
If you are accidentally missing from this list, send me an e-mail
110110
(``sami.vaarala@iki.fi``) and I'll fix the omission.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Duktape license
44

55
(http://opensource.org/licenses/MIT)
66

7-
Copyright (c) 2013-2018 by Duktape authors (see AUTHORS.rst)
7+
Copyright (c) 2013-2019 by Duktape authors (see AUTHORS.rst)
88

99
Permission is hereby granted, free of charge, to any person obtaining a copy
1010
of this software and associated documentation files (the "Software"), to deal

RELEASES.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3390,10 +3390,7 @@ Miscellaneous:
33903390
https://github.com/svaarala/duktape/blob/master/misc/clang_aliasing.c),
33913391
and the workaround is to use unpacked duk_tval prior to Clang 5.0 (GH-1764)
33923392

3393-
Planned
3394-
=======
3395-
3396-
2.4.0 (XXXX-XX-XX)
3393+
2.4.0 (2019-07-28)
33973394
------------------
33983395

33993396
* Add duk_to_stacktrace() and duk_safe_to_stacktrace() to make it easier to
@@ -3468,6 +3465,9 @@ Planned
34683465
* Rework some internal property handling call sites and helpers to e.g.
34693466
avoid inheriting internal properties when not intended (GH-2149)
34703467

3468+
* Improve assertion coverage for internal structures during mark-and-sweep
3469+
(GH-2092)
3470+
34713471
* Fix incorrect parsing of post-increment/post-decrement followed by
34723472
division (e.g. "z++ / 20"), the slash was interpreted as beginning
34733473
a regexp (GH-2140)
@@ -3538,11 +3538,16 @@ Planned
35383538
attributes enabled, debugger support enabled); the workaround is to
35393539
disable noreturn macros for GCC 5+ for now (GH-2156)
35403540

3541-
* Improve assertion coverage for internal structures during mark-and-sweep
3542-
(GH-2092)
3543-
35443541
* Various portability fixes (GH-1931, GH-1976)
35453542

3543+
Planned
3544+
=======
3545+
3546+
2.5.0 (XXXX-XX-XX)
3547+
------------------
3548+
3549+
* TBD
3550+
35463551
3.0.0 (XXXX-XX-XX)
35473552
------------------
35483553

doc/release-checklist.rst

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ Checklist for ordinary releases
1313
- ``vN.N.N-release-post``: use this naming for bumping version number after
1414
release, checklist fixes after release, etc.
1515

16-
* Git maintenance
17-
18-
- Ensure git commits are up-to-date
19-
20-
- Ensure branches are merged, unused branches deleted (also remotely)
21-
22-
- Ensure branches are rebased where applicable
23-
24-
- Check for uncommitted files
25-
26-
- git fsck --full
27-
28-
- git gc --aggressive
29-
3016
* Finalize DUK_VERSION
3117

3218
- Change previous development version (with patch level 99) to release
@@ -49,6 +35,8 @@ Checklist for ordinary releases
4935

5036
- Release date is in place
5137

38+
- Check release entry ordering
39+
5240
* Ensure tests/api/test-all-public-symbols.c is up-to-date
5341

5442
- Must add all new API calls

doc/release-notes-v2-4.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Duktape 2.4 release notes
55
Release overview
66
================
77

8-
TBD.
8+
Main changes in this release (see RELEASES.rst for full details):
99

1010
* Symbol built-in is now enabled by default.
1111

@@ -17,6 +17,10 @@ TBD.
1717

1818
* Add duk_require_constructable() and duk_require_constructor_call().
1919

20+
* Various fixes and portability improvements. Special thanks to Renata
21+
Hodovan for several issues found using Fuzzinator
22+
(https://github.com/renatahodovan/fuzzinator).
23+
2024
Upgrading from Duktape 2.3
2125
==========================
2226

doc/test262-known-issues.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,27 @@
3232
-
3333
test: "ch09/9.7/S9.7_A3.2_T1"
3434
knownissue: "Duktape String.fromCharCode() intentionally accepts non-BMP codepoints"
35+
-
36+
test: "ch10/10.6/10.6-13-b-1-s"
37+
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
38+
-
39+
test: "ch10/10.6/10.6-13-b-2-s"
40+
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
41+
-
42+
test: "ch10/10.6/10.6-13-b-3-s"
43+
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
44+
-
45+
test: "ch10/10.6/10.6-14-1-s"
46+
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
47+
-
48+
test: "ch10/10.6/10.6-14-b-1-s"
49+
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
50+
-
51+
test: "ch10/10.6/10.6-14-b-4-s"
52+
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
53+
-
54+
test: "ch13/13.2/S13.2.3_A1"
55+
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
3556
-
3657
test: "ch15/15.4/15.4.4/15.4.4.7/S15.4.4.7_A3"
3758
knownissue: "Duktape Array.prototype.push() doesn't allow Array length to grow beyond 2**32-1"
@@ -79,9 +100,6 @@
79100
-
80101
test: "ch15/15.4/15.4.4/15.4.4.15/15.4.4.15-8-9"
81102
diagnosed: "probably Duktape bug: long array corner cases (C typing?)"
82-
-
83-
test: "ch15/15.4/15.4.4/15.4.4.6/S15.4.4.6_A4_T1"
84-
diagnosed: "Array .pop() fast path (can be disabled) ignores inherited array index properties"
85103
-
86104
test: "ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T11"
87105
knownissue: "test case relies on locale specific Date format, Duktape uses ISO 8601 for Date toString()"

extras/cbor/duk_cbor.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ static DUK_CBOR_INLINE duk_uint16_t duk__cbor_read_uint16_big(const duk_uint8_t
211211
break;
212212
default:
213213
DUK_CBOR_ASSERT(0);
214+
x = 0;
214215
}
215216
return x;
216217
}
@@ -260,6 +261,7 @@ static DUK_CBOR_INLINE duk_uint32_t duk__cbor_read_uint32_big(const duk_uint8_t
260261
break;
261262
default:
262263
DUK_CBOR_ASSERT(0);
264+
x = 0;
263265
}
264266
return x;
265267
}

src-input/duk_api_codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ DUK_EXTERNAL void duk_hex_decode(duk_hthread *thr, duk_idx_t idx) {
850850
DUK_EXTERNAL const char *duk_hex_encode(duk_hthread *thr, duk_idx_t idx) {
851851
DUK_UNREF(idx);
852852
DUK_ERROR_UNSUPPORTED(thr);
853-
DUK_WO_NORETURN(return;);
853+
DUK_WO_NORETURN(return NULL;);
854854
}
855855
DUK_EXTERNAL void duk_hex_decode(duk_hthread *thr, duk_idx_t idx) {
856856
DUK_UNREF(idx);

src-input/duktape.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* development snapshots have 99 for patch level (e.g. 0.10.99 would be a
3939
* development version after 0.10.0 but before the next official release).
4040
*/
41-
#define DUK_VERSION 20399L
41+
#define DUK_VERSION 20400L
4242

4343
/* Git commit, describe, and branch for Duktape build. Useful for
4444
* non-official snapshot builds so that application code can easily log

tests/api/test-all-public-symbols.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ static duk_ret_t test_func(duk_context *ctx, void *udata) {
312312
(void) duk_resume(ctx, NULL);
313313
(void) duk_safe_call(ctx, NULL, NULL, 0, 0);
314314
(void) duk_safe_to_lstring(ctx, 0, NULL);
315+
(void) duk_safe_to_stacktrace(ctx, 0);
315316
(void) duk_safe_to_string(ctx, 0);
316317
(void) duk_samevalue(ctx, 0, 0);
317318
(void) duk_seal(ctx, 0);
@@ -343,6 +344,7 @@ static duk_ret_t test_func(duk_context *ctx, void *udata) {
343344
(void) duk_to_object(ctx, 0);
344345
(void) duk_to_pointer(ctx, 0);
345346
(void) duk_to_primitive(ctx, 0, 0);
347+
(void) duk_to_stacktrace(ctx, 0);
346348
(void) duk_to_string(ctx, 0);
347349
(void) duk_to_uint16(ctx, 0);
348350
(void) duk_to_uint32(ctx, 0);

0 commit comments

Comments
 (0)