On this page:
allow-anonymous-function-source-elements?
infer-do-while-semicolon?
enable-extended-catch-statements?
allow-nested-function-declarations?
proper-tail-recursion?
stack-limit
allow-eval-aliasing?
code-representation
lexical-keywords
enable-let-expressions?
debug-destination
debug-scope-resolution?
debug-unbound-references?
ecma-strict?
current-debug-port
Version: 4.1.5.3

9 Configuration Parameters

This library provides configuration parameters for the other libraries. It be can required via:

 (require (planet dherman/javascript:9:1/config))

allow-anonymous-function-source-elements? : (parameter/c boolean?)

Allow anonymous function expressions to appear in source-element contexts (non-standard)?

infer-do-while-semicolon? : (parameter/c boolean?)

Allow do..while statements to omit the final semicolon (non-standard)?

enable-extended-catch-statements? : (parameter/c boolean?)

Allow Mozilla-style multiple catch clauses (non-standard)?

allow-nested-function-declarations? : (parameter/c boolean?)

Allow function declarations to appear nested within statements (non-standard)?

proper-tail-recursion? : (parameter/c boolean?)

Enable proper tail recursion? (Not implemented.)

stack-limit : (parameter/c (optional/c natural-number/c))

Impose an artificial stack depth limit.

allow-eval-aliasing? : (parameter/c boolean?)

Allow treating eval as a general value?

code-representation : (parameter/c (one-of/c 'standard 'sexp))

Used for the DrScheme tool to choose between the standard JavaScript syntax and an S-expression syntax.

lexical-keywords : (parameter/c (listof symbol?))

Recognized lexical keywords.

enable-let-expressions? : (parameter/c boolean?)

Enable non-standard let expressions?

debug-destination : (parameter/c (one-of/c 'error-port 'debug-console))

debug-scope-resolution? : (parameter/c boolean?)

debug-unbound-references? : (parameter/c boolean?)

ecma-strict? : (pseudo-parameter/c boolean?)

A pseudo-parameter for setting parameters above to adhere strictly to the Ecma standard.

current-debug-port : (parameter/c output-port?)

The output port used for displaying debugging information during evaluation.