Sha256: 6d0a4a95651f6ee5a49a2c052f94cb644ccb6053788f2b0b357a1d9bd15ddd62

Contents?: true

Size: 490 Bytes

Versions: 31

Compression:

Stored size: 490 Bytes

Contents

/* */ 
"format cjs";
"use strict";

exports.__esModule = true;
var metadata = {
  group: "builtin-pre"
};

exports.metadata = metadata;
var visitor = {
  Literal: function Literal(node) {
    // number octal like 0b10 or 0o70
    if (typeof node.value === "number" && /^0[ob]/i.test(node.raw)) {
      node.raw = undefined;
    }

    // unicode escape
    if (typeof node.value === "string" && /\\[u]/gi.test(node.raw)) {
      node.raw = undefined;
    }
  }
};
exports.visitor = visitor;

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-3.1.2 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-3.1.1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-3.1.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-3.0.1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-3.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.2.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.1.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc8 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc7 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc6 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc5 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc4 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc3 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc2 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.rc1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.beta4 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.beta3 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js
sequenceserver-2.0.0.beta1 public/vendor/npm/babel-core@5.8.23/lib/transformation/transformers/es6/literals.js