Skip to content

Commit

Permalink
Remove DUK_USE_NONSTD_ARRAY_CONCAT_TRAILER option
Browse files Browse the repository at this point in the history
  • Loading branch information
svaarala committed Dec 28, 2017
1 parent bf3b66f commit 31c4474
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
11 changes: 4 additions & 7 deletions config/config-options/DUK_USE_NONSTD_ARRAY_CONCAT_TRAILER.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
define: DUK_USE_NONSTD_ARRAY_CONCAT_TRAILER
introduced: 1.0.0
removed: 2.3.0
default: true
tags:
- ecmascript
- compliance
description: >
For better compatibility with existing code, enable non-standard
Array.prototype.concat() behavior for trailing non-existent elements of
the concat result, see
https://github.com/svaarala/duktape/blob/master/tests/ecmascript/test-bi-array-proto-concat-nonstd-trailing.js.
If this option is disabled, concat() will behave in a strictly conforming
fashion, ignoring non-existent trailing elements in the result length.
In ES5.1 trailing gaps of an argument array don't count towards the result
length. This is in essence a specification "bug" which was fixed in ES2015.
This option was removed in 2.3.0, and the remaining behavior matches ES2015.
1 change: 0 additions & 1 deletion config/examples/compliance.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Enable compliant behavior, defaults favor "real world" compatibility.

DUK_USE_NONSTD_ARRAY_CONCAT_TRAILER: false
DUK_USE_NONSTD_ARRAY_MAP_TRAILER: false
DUK_USE_NONSTD_ARRAY_SPLICE_DELCOUNT: false
DUK_USE_NONSTD_FUNC_CALLER_PROPERTY: false
Expand Down
1 change: 0 additions & 1 deletion util/makeduk_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ DUK_USE_DEBUGGER_INSPECT: true
#DUK_USE_NONSTD_FUNC_CALLER_PROPERTY: true
#DUK_USE_NONSTD_FUNC_SOURCE_PROPERTY: true
#DUK_USE_NONSTD_ARRAY_SPLICE_DELCOUNT: false
#DUK_USE_NONSTD_ARRAY_CONCAT_TRAILER: false
#DUK_USE_NONSTD_ARRAY_MAP_TRAILER: false
#DUK_USE_NONSTD_JSON_ESC_U2028_U2029: false
#DUK_USE_NONSTD_STRING_FROMCHARCODE_32BIT: false
Expand Down

0 comments on commit 31c4474

Please sign in to comment.