Skip to content

Commit

Permalink
fix node 6
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Jan 19, 2024
1 parent a1765b2 commit 08c4110
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -19,7 +19,13 @@ System.register([], function (_export, _context) {
execute: function execute() {
// Ref: https://github.com/babel/babel/issues/16219

delete global.Symbol;
// delete global.Symbol doesn't work with jest in node 6
Object.defineProperty(global, "Symbol", {
configurable: true,
writable: true,
value: undefined
});

require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.to-primitive");
symbol = Symbol("test"); // Use eval to not let Babel transform this `typeof`
Expand Down

0 comments on commit 08c4110

Please sign in to comment.