You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
499 B

define: DUK_USE_NONSTD_JSON_ESC_U2028_U2029
feature_enables: DUK_OPT_NONSTD_JSON_ESC_U2028_U2029
introduced: 1.1.0
default: true
tags:
- ecmascript
- compliance
description: >
When enabled, Duktape JSON.stringify() will escape U+2028 and U+2029 which
is non-compliant behavior. This is recommended to make JSON.stringify()
output valid when embedded in a web page or parsed with eval().
When disabled, Duktape provides the compliant behavior, i.e. no escaping
for U+2028 and U+2029.