You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4eda10499e
The current logic in `js_to_json` tries to rewrite octal/hex numbers to decimal. However, when the logic actually happens the `"` or `'` have already been trimmed off. This causes what were originally strings, that happen to look like octal/hex numbers, to get rewritten to decimal and returned as a number rather than a string. In practive something like: ```js { "0x40": "foo", "040": "bar", } ``` would get rewritten as: ```json { 64: "foo", 32: "bar } ``` This is problematic since this isn't valid JSON as you cannot have non-string keys. |
4 years ago | |
---|---|---|
.. | ||
swftests | 10 years ago | |
testdata | 4 years ago | |
__init__.py | 11 years ago | |
helper.py | 5 years ago | |
parameters.json | 9 years ago | |
test_InfoExtractor.py | 5 years ago | |
test_YoutubeDL.py | 4 years ago | |
test_YoutubeDLCookieJar.py | 4 years ago | |
test_aes.py | 5 years ago | |
test_age_restriction.py | 10 years ago | |
test_all_urls.py | 5 years ago | |
test_cache.py | 10 years ago | |
test_compat.py | 5 years ago | |
test_download.py | 6 years ago | |
test_downloader_http.py | 6 years ago | |
test_execution.py | 8 years ago | |
test_http.py | 6 years ago | |
test_iqiyi_sdk_interpreter.py | 8 years ago | |
test_jsinterp.py | 8 years ago | |
test_netrc.py | 9 years ago | |
test_options.py | 7 years ago | |
test_postprocessors.py | 6 years ago | |
test_socks.py | 8 years ago | |
test_subtitles.py | 4 years ago | |
test_swfinterp.py | 5 years ago | |
test_unicode_literals.py | 9 years ago | |
test_update.py | 8 years ago | |
test_utils.py | 4 years ago | |
test_verbose_output.py | 8 years ago | |
test_write_annotations.py | 8 years ago | |
test_youtube_chapters.py | 4 years ago | |
test_youtube_lists.py | 6 years ago | |
test_youtube_signature.py | 4 years ago | |
testcert.pem | 9 years ago | |
versions.json | 8 years ago |