-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle parent/parentPath inconsistency
- Loading branch information
Showing
13 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...gin-proposal-class-properties/test/fixtures/private-loose/class-shadow-builtins/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class TypeError { | ||
#message | ||
} |
4 changes: 4 additions & 0 deletions
4
...-proposal-class-properties/test/fixtures/private-loose/class-shadow-builtins/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["proposal-class-properties"], | ||
"externalHelpers": false | ||
} |
12 changes: 12 additions & 0 deletions
12
...in-proposal-class-properties/test/fixtures/private-loose/class-shadow-builtins/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); } | ||
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } | ||
var _message = /*#__PURE__*/new WeakMap(); | ||
class _TypeError { | ||
constructor() { | ||
_classPrivateFieldInitSpec(this, _message, { | ||
writable: true, | ||
value: void 0 | ||
}); | ||
} | ||
} | ||
export { _TypeError as TypeError }; |
3 changes: 3 additions & 0 deletions
3
...el-plugin-proposal-class-properties/test/fixtures/private/class-shadow-builtins/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class TypeError { | ||
#message | ||
} |
4 changes: 4 additions & 0 deletions
4
...plugin-proposal-class-properties/test/fixtures/private/class-shadow-builtins/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["proposal-class-properties"], | ||
"externalHelpers": false | ||
} |
12 changes: 12 additions & 0 deletions
12
...l-plugin-proposal-class-properties/test/fixtures/private/class-shadow-builtins/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); } | ||
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } | ||
var _message = /*#__PURE__*/new WeakMap(); | ||
class _TypeError { | ||
constructor() { | ||
_classPrivateFieldInitSpec(this, _message, { | ||
writable: true, | ||
value: void 0 | ||
}); | ||
} | ||
} | ||
export { _TypeError as TypeError }; |
3 changes: 3 additions & 0 deletions
3
...ugin-proposal-class-properties/test/fixtures/public-loose/class-shadow-builtins/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class TypeError { | ||
message | ||
} |
4 changes: 4 additions & 0 deletions
4
...n-proposal-class-properties/test/fixtures/public-loose/class-shadow-builtins/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["proposal-class-properties"], | ||
"externalHelpers": false | ||
} |
9 changes: 9 additions & 0 deletions
9
...gin-proposal-class-properties/test/fixtures/public-loose/class-shadow-builtins/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
class _TypeError { | ||
constructor() { | ||
_defineProperty(this, "message", void 0); | ||
} | ||
} | ||
export { _TypeError as TypeError }; |
3 changes: 3 additions & 0 deletions
3
...bel-plugin-proposal-class-properties/test/fixtures/public/class-shadow-builtins/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export class TypeError { | ||
message | ||
} |
4 changes: 4 additions & 0 deletions
4
...-plugin-proposal-class-properties/test/fixtures/public/class-shadow-builtins/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["proposal-class-properties"], | ||
"externalHelpers": false | ||
} |
9 changes: 9 additions & 0 deletions
9
...el-plugin-proposal-class-properties/test/fixtures/public/class-shadow-builtins/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
class _TypeError { | ||
constructor() { | ||
_defineProperty(this, "message", void 0); | ||
} | ||
} | ||
export { _TypeError as TypeError }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters