21 Commits

Author SHA1 Message Date
sulyi
bddf48281c [jstests] Doc, dynamic import
Refactors: template check and logging logic
2016-12-29 08:06:43 +01:00
sulyi
3f075d87da [test] jstest fixes
* direct execution comment accidental removal
* zip type check in 'traverse'
* less convoluted 'variables' in JSInterpreter initialization
* tiny bit more meaningful log messages
* changing single letter flags to more explanatory names
* refactoring skip test logic
2016-12-27 07:10:01 +01:00
sulyi
5238ed11ac [test] Adding logging to TestJSInterpreter 2016-12-16 01:33:28 +01:00
sulyi
cd2bf30a60 [test] Adding logging to TestJSInterpreterParse 2016-12-16 01:33:28 +01:00
sulyi
d7443e1233 [jsinterp] Adding interpreter support for pre- and postfix expressions 2016-12-16 01:33:28 +01:00
sulyi
ab37e2b811 [test] Adding jstests test suite 2016-12-14 18:27:33 +01:00
sulyi
c2e6ca5432 [jsinterp] Adding code to if and switch test 2016-12-11 13:54:47 +01:00
sulyi
a9c7310950 [jsinterp] Adding context handling 2016-12-10 02:01:19 +01:00
sulyi
6fa4eb6208 [jsinterp] Fixing compatibility
- compat_str
- unittest2
2016-12-10 00:52:04 +01:00
sulyi
dd6a2b5b49 [jsinterp] Clean up
- Fixing test_jsinterp_parse test_empty_return
- Fixing test_call and test_complex_call not testing statements (ast still needed)
- Adding class Reference and Context to jsinterp
- Fixing JSInterpreter interpret_statement and interpret_expression
2016-12-09 23:38:48 +01:00
sulyi
651a1e7aa8 [jsinterp] Coding convention fixes 2016-12-08 13:22:28 +01:00
sulyi
b089388f26 [jsinterp] Lexer overhaul 2016-11-28 06:53:28 +01:00
sulyi
71a485fdb6 [jsinterp] Complex call test (thx to yan12125) 2016-11-25 22:41:33 +01:00
sulyi
da73cd90ec [jsinterp] Quick regex fixes (thx to yan12125) 2016-11-25 22:31:58 +01:00
sulyi
8c87a18029 [jsinterp] Calling field and test 2016-11-24 22:33:30 +01:00
sulyi
2c85715b93 [jsinterp] Handling comments 2016-11-23 06:19:57 +01:00
Yen Chi Hsuan
582be35847
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.

See https://github.com/PyCQA/pycodestyle/issues/400

See also #10689; thanks @stepshal for first mentioning this issue and
initial patches
2016-11-17 19:45:42 +08:00
Kacper Michajłow
189935f159 [jsinterp] Fix function calls without arguments. 2016-11-11 15:36:57 +01:00
Yen Chi Hsuan
ff29bf81f8 [jsinterp] Support alternative function definition form 2015-11-10 12:54:02 +08:00
Philipp Hagemeister
3eff81fbf7 [jsinterp] Disable comment support
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings.
For now it's sufficient to just disable comment support altogether.

Fixes #4976, fixes #4979, fixes #4980, fixes #4981, fixes #4982.
Closes #4977.
2015-02-18 10:47:42 +01:00
Philipp Hagemeister
9e3f19919a [jsinterp] Beef up and add tests
In preparation for #4822, extend jsinterp by a lot. (We may even have to/want to write a proper interpreter with actual parsing)
2015-02-01 22:38:29 +01:00