12 lines
525 B
YAML
12 lines
525 B
YAML
define: DUK_OPT_NO_NONSTD_ARRAY_MAP_TRAILER
|
|
introduced: 1.0.0
|
|
tags:
|
|
- ecmascript
|
|
description: >
|
|
For better compatibility with existing code, Array.prototype.map() has
|
|
non-standard behavior by default for trailing non-existent elements of
|
|
the map result, see
|
|
https://github.com/svaarala/duktape/blob/master/ecmascript-testcases/test-bi-array-proto-map-nonstd-trailing.js.
|
|
|
|
If this option is given, map() will behave in a strictly conforming
|
|
fashion, ignoring non-existent trailing elements in the result length.
|