소스 검색

fix: methods should begin with a lowercase letter

tophf 4 년 전
부모
커밋
b28b13cdd7
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/injected/web/safe-globals-web.js
  2. 1 1
      src/injected/web/util-web.js

+ 2 - 2
src/injected/web/safe-globals-web.js

@@ -56,9 +56,9 @@ export let
   // various values
   builtinGlobals,
   // various methods
+  arrayIsArray,
   createObjectURL,
   funcToString,
-  ArrayIsArray,
   logging,
   mathRandom,
   parseFromString, // DOMParser
@@ -147,7 +147,7 @@ export const VAULT = (() => {
     // various methods
     createObjectURL = res[i += 1] || src.URL.createObjectURL,
     funcToString = res[i += 1] || safeCall.toString,
-    ArrayIsArray = res[i += 1] || src.Array.isArray,
+    arrayIsArray = res[i += 1] || src.Array.isArray,
     logging = res[i += 1] || assign({ __proto__: null }, src.console),
     mathRandom = res[i += 1] || src.Math.random,
     parseFromString = res[i += 1] || SafeDOMParser[PROTO].parseFromString,

+ 1 - 1
src/injected/web/util-web.js

@@ -27,7 +27,7 @@ export const jsonDump = (value, stack) => {
     } else {
       setOwnProp(stack, stack.length, value);
     }
-    if (ArrayIsArray(value)) {
+    if (arrayIsArray(value)) {
       res = '[';
       // Must enumerate all values to include holes in sparse arrays
       for (let i = 0, len = value.length; i < len; i += 1) {