- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464
31 lines
482 B
JavaScript
31 lines
482 B
JavaScript
const_pragma: {
|
|
options = {
|
|
evaluate: true,
|
|
reduce_funcs: true,
|
|
reduce_vars: true,
|
|
};
|
|
|
|
input: {
|
|
/** @const */ var goog = goog || {};
|
|
}
|
|
expect: {
|
|
var goog = goog || {};
|
|
}
|
|
}
|
|
|
|
// for completeness' sake
|
|
not_const: {
|
|
options = {
|
|
evaluate: true,
|
|
reduce_funcs: true,
|
|
reduce_vars: true,
|
|
};
|
|
|
|
input: {
|
|
var goog = goog || {};
|
|
}
|
|
expect: {
|
|
var goog = goog || {};
|
|
}
|
|
}
|