alibaba / lightproxy

💎 Cross platform Web debugging proxy
https://lightproxy.org/
Apache License 2.0
3.12k stars 258 forks source link

log typeof switch error #223

Closed jadsongmatos closed 3 years ago

jadsongmatos commented 3 years ago

vendor/whistle/assets/js/ log.js null [:96] is not a possible return value of typeof [:85] .

switch (typeof value) {
      case 'string':
        return quote(value);

      case 'number':

        return isFinite(value)
                  ? String(value)
                  : 'null';

      case 'boolean':
      case 'null':
switch (typeof value) {
      case 'string':
        return quote(value);

      case 'number':

        return isFinite(value)
                  ? String(value)
                  : 'null';

      case 'boolean':
      case 'undefined':
xcodebuild commented 3 years ago

Upstream problem here: https://github.com/avwo/whistle/blob/master/assets/js/log.js#L96

Please open this issue in https://github.com/avwo/whistle

jadsongmatos commented 3 years ago

sorry but i don't understand, why should i open the issue in Whistle?

xcodebuild commented 3 years ago

Code in vendor/whistle is sync from upstream project Whistle.