mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
Ensure instanceof works after babel ES5 compilation
This commit is contained in:
@@ -19,6 +19,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = this.constructor.name;
|
||||
// Affordances for ensuring instanceof works after babel ES5 compilation
|
||||
this.constructor = UndefinedArgumentError;
|
||||
this.__proto__ = UndefinedArgumentError.prototype;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user