Skip to content

Commit

Permalink
make "propertyMustBeEnumberable" an map-object as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Nov 10, 2019
1 parent 4c034c8 commit 98c4ca9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/handlebars/compiler/javascript-compiler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { COMPILER_REVISION, REVISION_CHANGES } from '../base';
import Exception from '../exception';
import {extend, isArray} from '../utils';
import {isArray} from '../utils';
import CodeGen from './code-gen';
import {newMapObject} from '../internal/utils';

function Literal(value) {
this.value = value;
Expand Down Expand Up @@ -94,7 +95,7 @@ JavaScriptCompiler.prototype = {
this.useDepths = this.useDepths || environment.useDepths || environment.useDecorators || this.options.compat;
this.useBlockParams = this.useBlockParams || environment.useBlockParams;
this.allowNonHelperFunctionCall = this.options.allowNonHelperFunctionCall !== false; // default if true for 4.x
this.propertyMustBeEnumerable = extend({
this.propertyMustBeEnumerable = newMapObject({
__defineGetter__: true,
__defineSetter__: true,
__proto__: true,
Expand Down

0 comments on commit 98c4ca9

Please sign in to comment.