From 7754f7f83b75a5cd2ee687d73d64f6401793b284 Mon Sep 17 00:00:00 2001 From: coding Date: Sat, 14 Oct 2017 06:26:22 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B1=8F=E8=94=BDMC=E4=B8=AD=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E7=B1=BB=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/yaml/js-yaml/type/binary.js | 10 +++++----- .../modules/yaml/js-yaml/type/js/function.js | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/resources/modules/yaml/js-yaml/type/binary.js b/src/main/resources/modules/yaml/js-yaml/type/binary.js index 10b1875..7fb205a 100644 --- a/src/main/resources/modules/yaml/js-yaml/type/binary.js +++ b/src/main/resources/modules/yaml/js-yaml/type/binary.js @@ -4,11 +4,11 @@ var NodeBuffer; -try { - // A trick for browserified version, to not include `Buffer` shim - var _require = require; - NodeBuffer = _require('buffer').Buffer; -} catch (__) {} +// try { +// // A trick for browserified version, to not include `Buffer` shim +// var _require = require; +// NodeBuffer = _require('buffer').Buffer; +// } catch (__) {} var Type = require('../type'); diff --git a/src/main/resources/modules/yaml/js-yaml/type/js/function.js b/src/main/resources/modules/yaml/js-yaml/type/js/function.js index c6a42d0..93d88a3 100644 --- a/src/main/resources/modules/yaml/js-yaml/type/js/function.js +++ b/src/main/resources/modules/yaml/js-yaml/type/js/function.js @@ -9,14 +9,14 @@ var esprima; // If not found - try to fallback to window.esprima. If not // found too - then fail to parse. // -try { - // workaround to exclude package from browserify list. - var _require = require; - esprima = _require('esprima'); -} catch (_) { - /*global window */ - if (typeof window !== 'undefined') esprima = window.esprima; -} +// try { +// // workaround to exclude package from browserify list. +// var _require = require; +// esprima = _require('esprima'); +// } catch (_) { +// /*global window */ +// if (typeof window !== 'undefined') esprima = window.esprima; +// } var Type = require('../../type');