Skip to content

Commit

Permalink
Merge pull request #2157 from svaarala/v2.4.0-release-prep
Browse files Browse the repository at this point in the history
Preparations for 2.4.0 release
  • Loading branch information
svaarala authored Jul 28, 2019
2 parents 4ed391d + bcb3743 commit d4f2cff
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 46 deletions.
2 changes: 1 addition & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ bugs, provided ideas, etc; roughly in order of appearance):
* Wilhelm Wanecek (https://github.com/wanecek)
* Andrew Janke (https://github.com/apjanke)
* Unamer (https://github.com/unamer)
* Karl Dahlke
* Karl Dahlke ([email protected])

If you are accidentally missing from this list, send me an e-mail
(``[email protected]``) and I'll fix the omission.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Duktape license

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

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 12 additions & 7 deletions RELEASES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3390,10 +3390,7 @@ Miscellaneous:
https://github.com/svaarala/duktape/blob/master/misc/clang_aliasing.c),
and the workaround is to use unpacked duk_tval prior to Clang 5.0 (GH-1764)

Planned
=======

2.4.0 (XXXX-XX-XX)
2.4.0 (2019-07-28)
------------------

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

* Improve assertion coverage for internal structures during mark-and-sweep
(GH-2092)

* Fix incorrect parsing of post-increment/post-decrement followed by
division (e.g. "z++ / 20"), the slash was interpreted as beginning
a regexp (GH-2140)
Expand Down Expand Up @@ -3538,11 +3538,16 @@ Planned
attributes enabled, debugger support enabled); the workaround is to
disable noreturn macros for GCC 5+ for now (GH-2156)

* Improve assertion coverage for internal structures during mark-and-sweep
(GH-2092)

* Various portability fixes (GH-1931, GH-1976)

Planned
=======

2.5.0 (XXXX-XX-XX)
------------------

* TBD

3.0.0 (XXXX-XX-XX)
------------------

Expand Down
16 changes: 2 additions & 14 deletions doc/release-checklist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ Checklist for ordinary releases
- ``vN.N.N-release-post``: use this naming for bumping version number after
release, checklist fixes after release, etc.

* Git maintenance

- Ensure git commits are up-to-date

- Ensure branches are merged, unused branches deleted (also remotely)

- Ensure branches are rebased where applicable

- Check for uncommitted files

- git fsck --full

- git gc --aggressive

* Finalize DUK_VERSION

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

- Release date is in place

- Check release entry ordering

* Ensure tests/api/test-all-public-symbols.c is up-to-date

- Must add all new API calls
Expand Down
6 changes: 5 additions & 1 deletion doc/release-notes-v2-4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Duktape 2.4 release notes
Release overview
================

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

* Symbol built-in is now enabled by default.

Expand All @@ -17,6 +17,10 @@ TBD.

* Add duk_require_constructable() and duk_require_constructor_call().

* Various fixes and portability improvements. Special thanks to Renata
Hodovan for several issues found using Fuzzinator
(https://github.com/renatahodovan/fuzzinator).

Upgrading from Duktape 2.3
==========================

Expand Down
24 changes: 21 additions & 3 deletions doc/test262-known-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@
-
test: "ch09/9.7/S9.7_A3.2_T1"
knownissue: "Duktape String.fromCharCode() intentionally accepts non-BMP codepoints"
-
test: "ch10/10.6/10.6-13-b-1-s"
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
-
test: "ch10/10.6/10.6-13-b-2-s"
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
-
test: "ch10/10.6/10.6-13-b-3-s"
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
-
test: "ch10/10.6/10.6-14-1-s"
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
-
test: "ch10/10.6/10.6-14-b-1-s"
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
-
test: "ch10/10.6/10.6-14-b-4-s"
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
-
test: "ch13/13.2/S13.2.3_A1"
knownissue: "Revised behavior post-ES5.1: arguments.caller no longer present in strict mode"
-
test: "ch15/15.4/15.4.4/15.4.4.7/S15.4.4.7_A3"
knownissue: "Duktape Array.prototype.push() doesn't allow Array length to grow beyond 2**32-1"
Expand Down Expand Up @@ -79,9 +100,6 @@
-
test: "ch15/15.4/15.4.4/15.4.4.15/15.4.4.15-8-9"
diagnosed: "probably Duktape bug: long array corner cases (C typing?)"
-
test: "ch15/15.4/15.4.4/15.4.4.6/S15.4.4.6_A4_T1"
diagnosed: "Array .pop() fast path (can be disabled) ignores inherited array index properties"
-
test: "ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T11"
knownissue: "test case relies on locale specific Date format, Duktape uses ISO 8601 for Date toString()"
Expand Down
2 changes: 2 additions & 0 deletions extras/cbor/duk_cbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ static DUK_CBOR_INLINE duk_uint16_t duk__cbor_read_uint16_big(const duk_uint8_t
break;
default:
DUK_CBOR_ASSERT(0);
x = 0;
}
return x;
}
Expand Down Expand Up @@ -260,6 +261,7 @@ static DUK_CBOR_INLINE duk_uint32_t duk__cbor_read_uint32_big(const duk_uint8_t
break;
default:
DUK_CBOR_ASSERT(0);
x = 0;
}
return x;
}
Expand Down
2 changes: 1 addition & 1 deletion src-input/duk_api_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ DUK_EXTERNAL void duk_hex_decode(duk_hthread *thr, duk_idx_t idx) {
DUK_EXTERNAL const char *duk_hex_encode(duk_hthread *thr, duk_idx_t idx) {
DUK_UNREF(idx);
DUK_ERROR_UNSUPPORTED(thr);
DUK_WO_NORETURN(return;);
DUK_WO_NORETURN(return NULL;);
}
DUK_EXTERNAL void duk_hex_decode(duk_hthread *thr, duk_idx_t idx) {
DUK_UNREF(idx);
Expand Down
2 changes: 1 addition & 1 deletion src-input/duktape.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* development snapshots have 99 for patch level (e.g. 0.10.99 would be a
* development version after 0.10.0 but before the next official release).
*/
#define DUK_VERSION 20399L
#define DUK_VERSION 20400L

/* Git commit, describe, and branch for Duktape build. Useful for
* non-official snapshot builds so that application code can easily log
Expand Down
2 changes: 2 additions & 0 deletions tests/api/test-all-public-symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ static duk_ret_t test_func(duk_context *ctx, void *udata) {
(void) duk_resume(ctx, NULL);
(void) duk_safe_call(ctx, NULL, NULL, 0, 0);
(void) duk_safe_to_lstring(ctx, 0, NULL);
(void) duk_safe_to_stacktrace(ctx, 0);
(void) duk_safe_to_string(ctx, 0);
(void) duk_samevalue(ctx, 0, 0);
(void) duk_seal(ctx, 0);
Expand Down Expand Up @@ -343,6 +344,7 @@ static duk_ret_t test_func(duk_context *ctx, void *udata) {
(void) duk_to_object(ctx, 0);
(void) duk_to_pointer(ctx, 0);
(void) duk_to_primitive(ctx, 0, 0);
(void) duk_to_stacktrace(ctx, 0);
(void) duk_to_string(ctx, 0);
(void) duk_to_uint16(ctx, 0);
(void) duk_to_uint32(ctx, 0);
Expand Down
6 changes: 6 additions & 0 deletions tests/ecmascript/test-bi-cbor-dec-fastint.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
* Current CBOR decode fastint behavior.
*/

/*---
{
"skip": true
}
---*/

/*===
- top level integer
17 fastint
Expand Down
2 changes: 1 addition & 1 deletion util/index_page_sizes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
#set -x

ARCHOPT=-m32
#ARCHOPT=-mthumb
#ARCHOPT="-mthumb -march=armv7-a"

echo ""
echo "***"
Expand Down
1 change: 0 additions & 1 deletion website/api/duk_del_prop_literal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ example: |
tags:
- property
- literal
- experimental

seealso:
- duk_del_prop
Expand Down
1 change: 0 additions & 1 deletion website/api/duk_get_global_literal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ example: |
tags:
- property
- literal
- experimental

seealso:
- duk_get_global_string
Expand Down
1 change: 0 additions & 1 deletion website/api/duk_get_prop_literal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ example: |
tags:
- property
- literal
- experimental

seealso:
- duk_get_prop
Expand Down
1 change: 0 additions & 1 deletion website/api/duk_has_prop_literal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ example: |
tags:
- property
- literal
- experimental

seealso:
- duk_has_prop
Expand Down
1 change: 0 additions & 1 deletion website/api/duk_push_literal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,5 @@ example: |
tags:
- stack
- literal
- experimental

introduced: 2.3.0
1 change: 0 additions & 1 deletion website/api/duk_put_global_literal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ example: |
tags:
- property
- literal
- experimental

seealso:
- duk_put_global_string
Expand Down
1 change: 0 additions & 1 deletion website/api/duk_put_prop_literal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ example: |
tags:
- property
- literal
- experimental

seealso:
- duk_put_prop
Expand Down
6 changes: 3 additions & 3 deletions website/api/symbols-are-strings.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="note">
Symbol values are visible in the C API as strings so that both
<code>duk_is_symbol()</code> and <code>duk_is_string()</code> are true.
This behavior is similar to Duktape 1.x internal strings. Symbols are
still an experimental feature; for now, you can distinguish Symbols from
ordinary strings using <code><a href="#duk_is_symbol">duk_is_symbol()</a></code>.
This behavior is similar to Duktape 1.x internal strings. You can
distinguish Symbols from ordinary strings using
<code><a href="#duk_is_symbol">duk_is_symbol()</a></code>.
For the internal representation, see
<a href="https://github.com/svaarala/duktape/blob/master/doc/symbols.rst">symbols.rst</a>.
</div>
12 changes: 6 additions & 6 deletions website/index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ <h1>Code and RAM footprint</h1>
<p>For a "Hello world" <a href="https://github.com/svaarala/duktape/blob/master/util/index_page_sizes.sh">example</a>:</p>
<table>
<tr><th>Config</th><th>Code footprint (kB)</th><th>Startup RAM (kB)</th></tr>
<tr><td>thumb default</td><td>146</td><td>73</td></tr>
<tr><td>thumb lowmem</td><td>96</td><td>26</td></tr>
<tr><td>thumb full lowmem</td><td>120</td><td>1.5</td></tr>
<tr><td>x86 default</td><td>176</td><td>74</td></tr>
<tr><td>x86 lowmem</td><td>121</td><td>27</td></tr>
<tr><td>x86 full lowmem</td><td>146</td><td>1.5</td></tr>
<tr><td>thumb default</td><td>148</td><td>78</td></tr>
<tr><td>thumb lowmem</td><td>96</td><td>27</td></tr>
<tr><td>thumb full lowmem</td><td>119</td><td>1.5</td></tr>
<tr><td>x86 default</td><td>187</td><td>78</td></tr>
<tr><td>x86 lowmem</td><td>124</td><td>27</td></tr>
<tr><td>x86 full lowmem</td><td>148</td><td>1.5</td></tr>
</table>

<p>See <a href="http://duktape.org/benchmarks.html">Benchmarks</a>.</p>
Expand Down

0 comments on commit d4f2cff

Please sign in to comment.