* Track thisContainer for this-property-assignments in JS Previously it would update on every block, not just those that could bind `this`. In addition, if the constructor symbol still can't be found, then no binding happens. This is usually OK because people don't add new properties in methods too often. * Update additional baselines * Add lib:dom to new test * Address PR comments * Correct new name for saveThisParentContainer
17 lines
396 B
TypeScript
17 lines
396 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @Filename: bluebird.js
|
|
|
|
!function outer (f) { return f }(
|
|
function inner () {
|
|
function Async() {
|
|
this._trampolineEnabled = true;
|
|
}
|
|
|
|
Async.prototype.disableTrampolineIfNecessary = function dtin(b) {
|
|
if (b) {
|
|
this._trampolineEnabled = false;
|
|
}
|
|
};
|
|
})
|