| 1 |
new ( /*#__PURE__*/function () { |
| 2 |
"use strict"; |
| 3 |
|
| 4 |
function _class() { |
| 5 |
babelHelpers.classCallCheck(this, _class); |
| 6 |
} |
| 7 |
babelHelpers.createClass(_class, [{ |
| 8 |
key: "f", |
| 9 |
value: function f() { |
| 10 |
(function () { |
| 11 |
throw new ReferenceError("'delete super.prop' is invalid"); |
| 12 |
})(); |
| 13 |
} |
| 14 |
}]); |
| 15 |
return _class; |
| 16 |
}())().f(); |
| 17 |
new ( /*#__PURE__*/function () { |
| 18 |
"use strict"; |
| 19 |
|
| 20 |
function _class2() { |
| 21 |
babelHelpers.classCallCheck(this, _class2); |
| 22 |
} |
| 23 |
babelHelpers.createClass(_class2, [{ |
| 24 |
key: "f", |
| 25 |
value: function f() { |
| 26 |
babelHelpers.toPropertyKey(0), function () { |
| 27 |
throw new ReferenceError("'delete super[expr]' is invalid"); |
| 28 |
}(); |
| 29 |
} |
| 30 |
}]); |
| 31 |
return _class2; |
| 32 |
}())().f(); |
| 33 |
|
| 34 |
// [expr] should be evaluated |
| 35 |
var counter = 0; |
| 36 |
new ( /*#__PURE__*/function () { |
| 37 |
"use strict"; |
| 38 |
|
| 39 |
function _class3() { |
| 40 |
babelHelpers.classCallCheck(this, _class3); |
| 41 |
} |
| 42 |
babelHelpers.createClass(_class3, [{ |
| 43 |
key: "f", |
| 44 |
value: function f() { |
| 45 |
babelHelpers.toPropertyKey(++counter), function () { |
| 46 |
throw new ReferenceError("'delete super[expr]' is invalid"); |
| 47 |
}(); |
| 48 |
} |
| 49 |
}]); |
| 50 |
return _class3; |
| 51 |
}())().f(); |
| 52 |
|
| 53 |
// TypeError before ReferenceError |
| 54 |
new ( /*#__PURE__*/function () { |
| 55 |
"use strict"; |
| 56 |
|
| 57 |
function _class4() { |
| 58 |
babelHelpers.classCallCheck(this, _class4); |
| 59 |
} |
| 60 |
babelHelpers.createClass(_class4, [{ |
| 61 |
key: "f", |
| 62 |
value: function f() { |
| 63 |
babelHelpers.toPropertyKey(0()), function () { |
| 64 |
throw new ReferenceError("'delete super[expr]' is invalid"); |
| 65 |
}(); |
| 66 |
} |
| 67 |
}]); |
| 68 |
return _class4; |
| 69 |
}())().f(); |