Skip to content

Don't assign enums to __proto__#464

Merged
orderedlist merged 1 commit into
masterfrom
ol-fix-apm-callstack
Mar 5, 2015
Merged

Don't assign enums to __proto__#464
orderedlist merged 1 commit into
masterfrom
ol-fix-apm-callstack

Conversation

@orderedlist

Copy link
Copy Markdown
Collaborator

This fixes callstack errors with apm. I think the proto assignment is a recent thing, maybe added by @maxkorp? Tests pass without, so not sure the reason for the addition.

What think ye?

@tbranyen

tbranyen commented Mar 5, 2015

Copy link
Copy Markdown
Member

Excellent catch! I was just doing some testing and realized that we're augmenting Function.prototype with that __proto__ assignment 😱

> Function.prototype.WALK_MODE
{ WALK_PRE: 0, WALK_POST: 1 }

orderedlist added a commit that referenced this pull request Mar 5, 2015
@orderedlist orderedlist merged commit c620497 into master Mar 5, 2015
@tbranyen tbranyen deleted the ol-fix-apm-callstack branch March 5, 2015 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants